[XEN] Limit size of Xen heap to 2GB.

Avoids stub code created on the stack being unable to
reach targets in main Xen code via direct branches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-09-25 09:31:11 +01:00
1 parent b24690e3cc
commit cd741d6d73
1 file changed
+7
+7
View File
@@ -272,6 +272,13 @@ void __init __start_xen(multiboot_info_t *mbi)
EARLY_FAIL();
}
/*
* Since there are some stubs getting built on the stacks which use
* direct calls/jumps, the heap must be confined to the lower 2G so
* that those branches can reach their targets.
*/
if ( opt_xenheap_megabytes > 2048 )
opt_xenheap_megabytes = 2048;
xenheap_phys_end = opt_xenheap_megabytes << 20;
if ( mbi->flags & MBI_MEMMAP )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.