[Xen-devel] [PATCH] efi: Reallocate memory map if ExitBootServices() fails

2015-05-29 Thread Ross Lagerwall
If calling ExitBootServices() fails, the memory map size may have increased, so determine the new size and reallocate the memory map before calling GetMemoryMap() again. This was seen on the following machine when using the iscsidxe UEFI driver. The machine would consistently fail the first call

Re: [Xen-devel] [PATCH] efi: Reallocate memory map if ExitBootServices() fails

2015-05-29 Thread Andrew Cooper
On 29/05/15 08:48, Ross Lagerwall wrote: If calling ExitBootServices() fails, the memory map size may have increased, so determine the new size and reallocate the memory map before calling GetMemoryMap() again. This was seen on the following machine when using the iscsidxe UEFI driver. The

Re: [Xen-devel] [PATCH] efi: Reallocate memory map if ExitBootServices() fails

2015-05-29 Thread Ross Lagerwall
On 05/29/2015 10:45 AM, Jan Beulich wrote: On 29.05.15 at 09:48, ross.lagerw...@citrix.com wrote: --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1053,14 +1053,14 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) efi_arch_video_init(gop, info_size,

Re: [Xen-devel] [PATCH] efi: Reallocate memory map if ExitBootServices() fails

2015-05-29 Thread Jan Beulich
On 29.05.15 at 09:48, ross.lagerw...@citrix.com wrote: --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1053,14 +1053,14 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) efi_arch_video_init(gop, info_size, mode_info); } -

Re: [Xen-devel] [PATCH] efi: Reallocate memory map if ExitBootServices() fails

2015-05-29 Thread Jan Beulich
On 29.05.15 at 11:57, ross.lagerw...@citrix.com wrote: On 05/29/2015 10:45 AM, Jan Beulich wrote: On 29.05.15 at 09:48, ross.lagerw...@citrix.com wrote: --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1053,14 +1053,14 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE