linux-user: Fix h2g usage in page_find_alloc
commitb396b140a831ba8f3c209858ada2a9285ee5f0b7
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 8 Dec 2008 18:12:26 +0000 (8 18:12 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 8 Dec 2008 18:12:26 +0000 (8 18:12 +0000)
tree80cc79ab9361d3c7c94ec07640b20d445df409ee
parent81736079c9b594acefee8ece0199ef0f1250bfbd
linux-user: Fix h2g usage in page_find_alloc

Paul's comment on my first approach to fix the h2g usage in
page_find_alloc finally open my eyes about what the code is actually
supposed to do:

With the help of h2g_valid we can no cleanly check if a freshly allocate
page (for host usage) is guest-reachable and, in case it is, mark it
reserved in the guest's address range.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: http://svn.savannah.gnu.org/svn/qemu/trunk@5957 c046a42c-6fe2-441c-8c8c-71466251a162
exec.c