mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
Pre-allocate guest address space
Allow pre-allocation of the guest virtual address space in usermode emulation. Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
0be1d07c0e
commit
68a1c81686
5 changed files with 183 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue