]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/main.c
bsd-user: Allocate guest virtual address space
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 27 Jul 2023 16:11:48 +0000 (09:11 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 31 Jul 2023 19:19:13 +0000 (12:19 -0700)
commit28b61d49ac80bac8ef74aff0b75058bdd0b2f108
tree0977685b89a4ff2b5f89de5155ae8e5c06de6633
parentad17868eb162a5466d8ad43e5ccb428776403308
bsd-user: Allocate guest virtual address space

With reserved_va, mmap.c expects to have pre-allocated host address
space for the entire guest address space.  When combined with the -B
command-line option, ensure that the chosen address does not overlap
anything else.  Ensure that mmap_next_start is within reserved_va,
as we use it within mmap.c without checking.

Reviewed by: Warner Losh <imp@bsdimp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230727161148.444988-1-richard.henderson@linaro.org>
bsd-user/main.c