summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorRichard Henderson2010-03-11 00:39:07 +0100
committerPaul Brook2010-03-12 17:29:18 +0100
commit14f24e1465edc44b9b4d89fbbea66e06088154e1 (patch)
treea4d7af58d82337b45a4566a5c3f7d3d15b18a584 /exec.c
parentlinux-user: Use h2g_valid in qemu_vmalloc. (diff)
downloadqemu-14f24e1465edc44b9b4d89fbbea66e06088154e1.tar.gz
qemu-14f24e1465edc44b9b4d89fbbea66e06088154e1.tar.xz
qemu-14f24e1465edc44b9b4d89fbbea66e06088154e1.zip
linux-user: Fix mmap_find_vma returning invalid addresses.
Don't return addresses that aren't properly aligned for the guest, e.g. when the guest has a larger page size than the host. Don't return addresses that are outside the virtual address space for the target, by paying proper attention to the h2g/g2h macros. At the same time, place the default mapping base for 64-bit guests (on 64-bit hosts) outside the low 4G. Consistently interpret mmap_next_start in the guest address space. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions