linux-user: resolve reserved_va vma downwards
commit59e9d91c7ae1b655997aec61c08eec1685414117
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 8 Mar 2012 14:40:33 +0000 (8 14:40 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 6 Apr 2012 15:49:58 +0000 (6 18:49 +0300)
tree4c047f5d48774c57a0428c7cef98b15bfede8099
parent39879bbbea4661a4004ca26673e3d1e6ae1e0bc3
linux-user: resolve reserved_va vma downwards

After consulting with Paul Brook, we concluded that it's best to search
the VMA space downwards, so that we don't even get the chance to conflict
with the brk range.

This patch resolves a bunch of allocation conflicts when using -R.

Signed-off-by: Alexander Graf <agraf@suse.de>
[minor changes to get it to apply -- PMM]

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/main.c
linux-user/mmap.c
linux-user/qemu.h