Re: [PATCH V3] efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()

2020-05-07 Thread Ard Biesheuvel
On Thu, 7 May 2020 at 20:33, Lenny Szubowicz wrote: > > In allocate_e820(), call the EFI get_memory_map() service directly > instead of indirectly via efi_get_memory_map(). This avoids allocation > of a buffer and return of the full EFI memory map, which is not needed > here and would otherwise

[PATCH V3] efi/libstub/x86: Avoid EFI map buffer alloc in allocate_e820()

2020-05-07 Thread Lenny Szubowicz
In allocate_e820(), call the EFI get_memory_map() service directly instead of indirectly via efi_get_memory_map(). This avoids allocation of a buffer and return of the full EFI memory map, which is not needed here and would otherwise need to be freed. Routine allocate_e820() only needs to know