Re: [PATCH v3 09/17] x86/efi: Intersect ranges_to_free with MEMBLOCK_RSRV_KERN regions

From: Mike Rapoport

Date: Tue Apr 28 2026 - 05:00:12 EST


On Thu, Apr 23, 2026 at 05:20:34PM +0200, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@xxxxxxxxxx>
>
> efi_mem_reserve() will mark reservations in memblock with the
> MEMBLOCK_RSRV_KERN attribute, so take this into account when building
> the ranges_to_free array. This removes the need to split EFI memory map
> entries and tag them with the EFI_MEMORY_RUNTIME attribute.
>
> Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>

Acked-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

> ---
> arch/x86/platform/efi/quirks.c | 44 +++++++++++++++-----
> 1 file changed, 33 insertions(+), 11 deletions(-)

--
Sincerely yours,
Mike.