On Thu, Sep 2, 2021 at 6:56 PM <i...@bsdimp.com> wrote: > > From: Warner Losh <i...@freebsd.org> > > 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.uran...@gmail.com> > Signed-off-by: Stacey Son <s...@freebsd.org> > Signed-off-by: Warner Losh <i...@bsdimp.com> > Acked-by: Richard Henderson <richard.hender...@linaro.org> > --- > bsd-user/main.c | 43 ++++- > bsd-user/mmap.c | 415 ++++++++++++++++++++++++++++++++++++++++-------- > bsd-user/qemu.h | 5 +- > 3 files changed, 392 insertions(+), 71 deletions(-) >
Reviewed-by: Kyle Evans <kev...@freebsd.org>