Rewrite mmap_find_vma() to work fine on 64-bit hosts with 32-bit targets
authorKirill A. Shutemov <kirill@shutemov.name>
Mon, 13 Oct 2008 07:54:58 +0000 (10:54 +0300)
committerRiku Voipio <riku.voipio@nokia.com>
Mon, 20 Apr 2009 12:33:19 +0000 (15:33 +0300)
commit6103a083c1503716b35e0d6806a6337b63bce3e7
tree96690b970559ba265e5ac4ad455d63d9c5478fdb
parent7545668bfed32b9d544f6484c627817aa0f59f25
Rewrite mmap_find_vma() to work fine on 64-bit hosts with 32-bit targets

qemu's page table can be incomple if /proc/self/maps is unavailable or
host allocating a memory with mmap(), so we can't use it to find free
memory area.

New version mmap_find_vma() uses mmap() without MAP_FIXED to find free
memory.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/mmap.c
linux-user/qemu.h