From: "Jan Beulich" Subject: Re: [PATCH v3 1/2] efi: Fix allocation problems if ExitBootServices() fails Date: Mon, 01 Jun 2015 12:10:16 +0100 Message-ID: <556C59B8020000780007FABA@mail.emea.novell.com> References: <1433153878-32199-1-git-send-email-ross.lagerwall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1433153878-32199-1-git-send-email-ross.lagerwall@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ross Lagerwall Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Tim Deegan , xen-devel@lists.xen.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org >>> On 01.06.15 at 12:17, wrote: > If calling ExitBootServices() fails, the required memory map size may > have increased. When initially allocating the memory map, allocate a > slightly larger buffer (by an arbitrary 8 entries) to fix this. > > The ARM code path was already allocating a larger buffer than required, > so this moves the code to be common for all architectures. > > This was seen on the following machine when using the iscsidxe UEFI > driver. The machine would consistently fail the first call to > ExitBootServices(). > System Information > Manufacturer: Supermicro > Product Name: X10SLE-F/HF > BIOS Information > Vendor: American Megatrends Inc. > Version: 2.00 > Release Date: 04/24/2014 > > Signed-off-by: Ross Lagerwall Provided ARM folks are happy with the reduced increase, Acked-by: Jan Beulich