]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/main.c
linux-user: Use init_guest_space when -R and -B are specified
authorMeador Inge <meadori@codesourcery.com>
Thu, 26 Jul 2012 16:50:02 +0000 (16:50 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2012 19:26:55 +0000 (20:26 +0100)
commit806d102141b99d4f1e55a97d68b7ea8c8ba3129f
tree7b1555eded63ad1034ad5f5e4926cf765862ca8a
parentdce104013d1b393d39a89c4417d7771d928c08f3
linux-user: Use init_guest_space when -R and -B are specified

Roll the code used to initialize the guest memory space when -R
or -B is used into 'init_guest_space' and then call 'init_guest_space'
from the driver.  This way the reserved guest memory space can
be probed for.  Calling 'mmap' just once as is currently done is not
guaranteed to succeed since the host address space validation might fail.

Signed-off-by: Meador Inge <meadori@codesourcery.com>
[PMM: Fixed minor whitespace errors.]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/elfload.c
linux-user/main.c
linux-user/qemu.h