Skip to content

Commit

Permalink
efi: runtime-maps: Clarify purpose and enable by default for kexec
Browse files Browse the repository at this point in the history
The current Kconfig logic for CONFIG_EFI_RUNTIME_MAPS does not convey
that without it, a kexec kernel is not able to boot in EFI mode at all.
So clarify this, and make the option only configurable via the menu
system if CONFIG_EXPERT is set.

Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Dave Young <[email protected]>
  • Loading branch information
ardbiesheuvel committed Nov 18, 2022
1 parent 36d5786 commit 8dfac4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/firmware/efi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ config EFI_VARS_PSTORE_DEFAULT_DISABLE
using the efivars module's pstore_disable parameter.

config EFI_RUNTIME_MAP
bool "Export efi runtime maps to sysfs"
depends on X86 && EFI && KEXEC_CORE
default y
bool "Export EFI runtime maps to sysfs" if EXPERT
depends on X86 && EFI
default KEXEC_CORE
help
Export efi runtime memory maps to /sys/firmware/efi/runtime-map.
That memory map is used for example by kexec to set up efi virtual
mapping the 2nd kernel, but can also be used for debugging purposes.
Export EFI runtime memory regions to /sys/firmware/efi/runtime-map.
That memory map is required by the 2nd kernel to set up EFI virtual
mappings after kexec, but can also be used for debugging purposes.

See also Documentation/ABI/testing/sysfs-firmware-efi-runtime-map.

Expand Down

0 comments on commit 8dfac4d

Please sign in to comment.