Skip to content

x86/efi: Prepwork for memory map cleanup

Ard Biesheuvel linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/efi: Omit redundant kernel image overlap checkarch/x86/platform/efi/quirks.c+4 -110 replies
2/7x86/efi: Drop redundant EFI_PARAVIRT checkarch/x86/platform/efi/efi.c+3 -51 reply
3/7x86/efi: Only merge EFI memory map entries on 32-bit systemsarch/x86/include/asm/efi.h arch/x86/platform/efi/efi.c arch/x86/platform/efi/efi_32.c+37 -310 replies
4/7x86/efi: Defer sub-1M check from unmap to free stagearch/x86/platform/efi/quirks.c+12 -160 replies
5/7x86/efi: Simplify real mode trampoline allocation quirkarch/x86/platform/efi/quirks.c+6 -230 replies
6/7x86/efi: Unmap kernel-reserved boot regions from EFI page tablesarch/x86/platform/efi/quirks.c+6 -60 replies
7/7x86/efi: Drop EFI_MEMORY_RUNTIME check from __ioremap_check_other()arch/x86/mm/ioremap.c+4 -30 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchThomas Huth
1/7
2/7R-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] x86/efi: Prepwork for memory map cleanup

From: Ard Biesheuvel <[email protected]>

This is a follow-up to [0], which had some fundamental issues, as spotted by Sashiko [1]. Disentangling the EFI memory map mess on x86 needs a rethink, but some of the prepwork is still worthwhile, and so it is presented here separately.

The end goal is still the same, i.e., to remove the need for the x86 boot code to modify the EFI memory map, or reallocate/copy/remap it numerous times.

[0] https://lore.kernel.org/all/[email protected]/
[1] https://sashiko.dev/#/patchset/20260319090529.1091660-21-ardb%2Bgit%40google.com

Ard Biesheuvel (7):
x86/efi: Omit redundant kernel image overlap check x86/efi: Drop redundant EFI_PARAVIRT check
x86/efi: Only merge EFI memory map entries on 32-bit systems x86/efi: Defer sub-1M check from unmap to free stage x86/efi: Simplify real mode trampoline allocation quirk x86/efi: Unmap kernel-reserved boot regions from EFI page tables x86/efi: Drop EFI_MEMORY_RUNTIME check from __ioremap_check_other()

 arch/x86/include/asm/efi.h     |  6 ++
 arch/x86/mm/ioremap.c          |  7 +-
 arch/x86/platform/efi/efi.c    | 39 +---------
 arch/x86/platform/efi/efi_32.c | 31 ++++++++
 arch/x86/platform/efi/quirks.c | 78 +++++++-------------
 5 files changed, 69 insertions(+), 92 deletions(-)

base-commit: 259e3e6f9382b6a9fe570313d97c59a233f7d72f

Signature · 1 line
2.53.0.1213.gd9a14994de-goog