x86/EFI: make trampoline allocation more flexible
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Nov 2013 10:08:32 +0000 (11:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Nov 2013 10:08:32 +0000 (11:08 +0100)
commitc1f2dfe8f6a559bc28935f24e31bb33d17d9713d
treef84464d12f59e14acbcca48c3db5341a00d09352
parent48535f5798e3e237d9920a74c1ce3802958136c0
x86/EFI: make trampoline allocation more flexible

Certain UEFI implementations reserve all memory below 1Mb at boot time,
making it impossible to properly allocate the chunk necessary for the
trampoline. Fall back to simply grabbing a chunk from EfiBootServices*
regions immediately prior to calling ExitBootServices().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/efi/boot.c