From 68a1c816868b3e35a1da698af412b29e61b1948a Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Sat, 29 May 2010 02:27:35 +0100 Subject: Pre-allocate guest address space Allow pre-allocation of the guest virtual address space in usermode emulation. Signed-off-by: Paul Brook --- linux-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user/elfload.c') diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 1f27918..2d920f2 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1682,7 +1682,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, * In case where user has not explicitly set the guest_base, we * probe here that should we set it automatically. */ - if (!have_guest_base) { + if (!(have_guest_base || reserved_va)) { /* * Go through ELF program header table and find the address * range used by loadable segments. Check that this is available on -- cgit v1.1