linux-user: Fix shmat emulation by honoring host SHMLBA
commit30ab9ef2967dde22193f609b6ec56101c156b061
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 19 May 2019 20:19:52 +0000 (19 13:19 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 24 May 2019 11:16:21 +0000 (24 13:16 +0200)
tree128863abc52b116065b5d5c162e0335592e60254
parentabcac736c1505254ec3f9587aff04fbe4705a55e
linux-user: Fix shmat emulation by honoring host SHMLBA

For those hosts with SHMLBA > getpagesize, we don't automatically
select a guest address that is compatible with the host.  We can
achieve this by boosting the alignment of guest_base and by adding
an extra alignment argument to mmap_find_vma.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20190519201953.20161-13-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/elfload.c
linux-user/mmap.c
linux-user/qemu.h
linux-user/syscall.c