]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/mmap.c
bsd-user: Update mapping to handle reserved and starting conditions
authorWarner Losh <imp@FreeBSD.org>
Fri, 6 Aug 2021 00:15:47 +0000 (18:15 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commitbe04f210f954bed8663943a94ece50c2ca410231
tree66b7ba615be609de81ee13896bf972d825d09d2d
parentb8012648b38274aa996f1477c422a79e2d44110b
bsd-user: Update mapping to handle reserved and starting conditions

Update the reserved base based on what platform we're on, as well as the
start of the mmap range. Update routines that find va ranges to interact
with the reserved ranges as well as properly align the mapping (this is
especially important for targets whose page size does not match the
host's). Loop where appropriate when the initial address space offered
by mmap does not meet the contraints.

This has 18e80c55bb6 from linux-user folded in to the upstream
bsd-user code as well.

Signed-off-by: Mikaƫl Urankar <mikael.urankar@gmail.com>
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
bsd-user/main.c
bsd-user/mmap.c
bsd-user/qemu.h