EFI (Extensible Firmware Interface) Support
- Depends on
CONFIG_EFI_ESRT
- Depends on
CONFIG_EFI_VARS_PSTORE Register efivars backend for pstore
- Off
- Module
- Built in
Say Y here to enable use efivars as a backend to pstore. This will allow writing console messages, crash dumps, or anything else supported by pstore to EFI variables.
- Depends on
&& PSTORE - Selects
UCS2_STRING if && PSTORE
If EFI_VARS_PSTORE
CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE Disable using efivars as a pstore backend by default
Saying Y here will disable the use of efivars as a storage backend for pstore by default. This setting can be overridden using the efivars module's pstore_disable parameter.
- Depends on
&& EFI_VARS_PSTORE
CONFIG_EFI_SOFT_RESERVE Reserve EFI Specific Purpose Memory
On systems that have mixed performance classes of memory EFI may indicate specific purpose memory with an attribute (See EFI_MEMORY_SP in UEFI 2.8). A memory range tagged with this attribute may have unique performance characteristics compared to the system's general purpose "System RAM" pool. On the expectation that such memory has application specific usage, and its base EFI memory type is "conventional" answer Y to arrange for the kernel to reserve it as a "Soft Reserved" resource, and set aside for direct-access (device-dax) by default. The memory range can later be optionally assigned to the page allocator by system administrator policy via the device-dax kmem facility. Say N to have the kernel treat this memory as "System RAM" by default.
If unsure, say Y.
- Depends on
&& && ACPI_HMAT
CONFIG_EFI_DXE_MEM_ATTRIBUTES Adjust memory attributes in EFISTUB
UEFI specification does not guarantee all memory to be accessible for both write and execute as the kernel expects it to be. Use DXE services to check and alter memory protection attributes during boot via EFISTUB to ensure that memory ranges used by the kernel are writable and executable.
- Depends on
&& && X86
CONFIG_EFI_PARAMS_FROM_FDT
Select this config option from the architecture Kconfig if the EFI runtime support gets system table address, memory map address, and other parameters from the device tree.
- Depends on
CONFIG_EFI_RUNTIME_WRAPPERS
- Depends on
CONFIG_EFI_GENERIC_STUB
- Depends on
CONFIG_EFI_ZBOOT Enable the generic EFI decompressor
Create the bootable image as an EFI application that carries the actual kernel image in compressed form, and decompresses it into memory before executing it. For compatibility with non-EFI loaders, the payload can be decompressed and executed by the loader as well, provided that the loader implements the decompression algorithm. (The compression algorithm used is described in the zboot header)
- Depends on
&& EFI_GENERIC_STUB && !ARM - Selects
HAVE_KERNEL_GZIP if && EFI_GENERIC_STUB && !ARM - Selects
HAVE_KERNEL_ZSTD if && EFI_GENERIC_STUB && !ARM
CONFIG_EFI_ARMSTUB_DTB_LOADER Enable the DTB loader
Select this config option to add support for the dtb= command line parameter, allowing a device tree blob to be loaded into memory from the EFI System Partition by the stub.
If the device tree is provided by the platform or by the bootloader this option may not be needed. But, for various development reasons and to maintain existing functionality for bootloaders that do not have such support this option is necessary.
- Depends on
&& EFI_GENERIC_STUB && !RISCV && !LOONGARCH
CONFIG_EFI_BOOTLOADER_CONTROL EFI Bootloader Control
- Off
- Module
- Built in
This module installs a reboot hook, such that if reboot() is invoked with a string argument NNN, "NNN" is copied to the "LoaderEntryOneShot" EFI variable, to be read by the bootloader. If the string matches one of the boot labels defined in its configuration, the bootloader will boot once to that label. The "LoaderEntryRebootReason" EFI variable is set with the reboot reason: "reboot" or "shutdown". The bootloader reads this reboot reason and takes particular action according to its policy.
- Depends on
- Selects
UCS2_STRING if
CONFIG_EFI_CAPSULE_LOADER EFI capsule loader
- Off
- Module
- Built in
This option exposes a loader interface "/dev/efi_capsule_loader" for users to load EFI capsules. This driver requires working runtime capsule support in the firmware, which many OEMs do not provide.
Most users should say N.
- Depends on
CONFIG_EFI_CAPSULE_QUIRK_QUARK_CSH Add support for Quark capsules with non-standard headers
Add support for processing Quark X1000 EFI capsules, whose header layout deviates from the layout mandated by the UEFI specification.
- Depends on
&& X86 && ! - Selects
EFI_CAPSULE_LOADER if && X86 && !
CONFIG_EFI_TEST EFI Runtime Service Tests Support
- Off
- Module
- Built in
This driver uses the efi.<service> function pointers directly instead of going through the efivar API, because it is not trying to test the kernel subsystem, just for testing the UEFI runtime service interfaces which are provided by the firmware. This driver is used by the Firmware Test Suite (FWTS) for testing the UEFI runtime interfaces readiness of the firmware. Details for FWTS are available from: <https://wiki.ubuntu.com/FirmwareTestSuite>
Say Y here to enable the runtime services support via /dev/efi_test. If unsure, say N.
- Depends on
CONFIG_EFI_DEV_PATH_PARSER
- Depends on
CONFIG_APPLE_PROPERTIES Apple Device Properties
Retrieve properties from EFI on Apple Macs and assign them to devices, allowing for improved support of Apple hardware. Properties that would otherwise be missing include the Thunderbolt Device ROM and GPU configuration data.
If unsure, say Y if you have a Mac. Otherwise N.
- Depends on
&& && X86 - Selects
EFI_DEV_PATH_PARSER if && && X86 - Selects
UCS2_STRING if && && X86
CONFIG_RESET_ATTACK_MITIGATION Reset memory attack mitigation
Request that the firmware clear the contents of RAM after a reboot using the TCG Platform Reset Attack Mitigation specification. This protects against an attacker forcibly rebooting the system while it still contains secrets in RAM, booting another OS and extracting the secrets. This should only be enabled when userland is configured to clear the MemoryOverwriteRequest flag on clean shutdown after secrets have been evicted, since otherwise it will trigger even on clean reboots.
- Depends on
&&
CONFIG_EFI_RCI2_TABLE EFI Runtime Configuration Interface Table Version 2 Support
Displays the content of the Runtime Configuration Interface Table version 2 on Dell EMC PowerEdge systems as a binary attribute 'rci2' under /sys/firmware/efi/tables directory.
RCI2 table contains BIOS HII in XML format and is used to populate BIOS setup page in Dell EMC OpenManage Server Administrator tool. The BIOS setup page contains BIOS tokens which can be configured.
Say Y here for Dell EMC PowerEdge systems.
- Depends on
&& (X86 || COMPILE_TEST)
CONFIG_EFI_DISABLE_PCI_DMA Clear Busmaster bit on PCI bridges during ExitBootServices()
Disable the busmaster bit in the control register on all PCI bridges while calling ExitBootServices() and passing control to the runtime kernel. System firmware may configure the IOMMU to prevent malicious PCI devices from being able to attack the OS via DMA. However, since firmware can't guarantee that the OS is IOMMU-aware, it will tear down IOMMU configuration when ExitBootServices() is called. This leaves a window between where a hostile device could still cause damage before Linux configures the IOMMU again.
If you say Y here, the EFI stub will clear the busmaster bit on all PCI bridges before ExitBootServices() is called. This will prevent any malicious PCI devices from being able to perform DMA until the kernel reenables busmastering after configuring the IOMMU.
This option will cause failures with some poorly behaved hardware and should not be enabled without testing. The kernel commandline options "efi=disable_early_pci_dma" or "efi=no_disable_early_pci_dma" may be used to override this option.
- Depends on
CONFIG_EFI_EARLYCON
- Depends on
&& SERIAL_EARLYCON && !ARM - Selects
FONT_SUPPORT if && SERIAL_EARLYCON && !ARM - Selects
ARCH_USE_MEMREMAP_PROT if && SERIAL_EARLYCON && !ARM
CONFIG_EFI_CUSTOM_SSDT_OVERLAYS Load custom ACPI SSDT overlay from an EFI variable
Allow loading of an ACPI SSDT overlay from an EFI variable specified by a kernel command line option.
See Documentation/admin-guide/acpi/ssdt-overlays.rst for more information.
- Depends on
&& ACPI
CONFIG_EFI_DISABLE_RUNTIME Disable EFI runtime services support by default
Allow to disable the EFI runtime services support by default. This can already be achieved by using the efi=noruntime option, but it could be useful to have this default without any kernel command line parameter.
The EFI runtime services are disabled by default when PREEMPT_RT is enabled, because measurements have shown that some EFI functions calls might take too much time to complete, causing large latencies which is an issue for Real-Time kernels.
This default can be overridden by using the efi=runtime option.
- Depends on
CONFIG_EFI_COCO_SECRET EFI Confidential Computing Secret Area Support
Confidential Computing platforms (such as AMD SEV) allow the Guest Owner to securely inject secrets during guest VM launch. The secrets are placed in a designated EFI reserved memory area.
In order to use the secrets in the kernel, the location of the secret area (as published in the EFI config table) must be kept.
If you say Y here, the address of the EFI secret area will be kept for usage inside the kernel. This will allow the virt/coco/efi_secret module to access the secrets, which in turn allows userspace programs to access the injected secrets.
- Depends on
CONFIG_OVMF_DEBUG_LOG Expose OVMF firmware debug log via sysfs
Recent versions of the Open Virtual Machine Firmware (edk2-stable202508 + newer) can write their debug log to a memory buffer. This driver exposes the log content via sysfs (/sys/firmware/efi/ovmf_debug_log).
- Depends on
CONFIG_UNACCEPTED_MEMORY
Some Virtual Machine platforms, such as Intel TDX, require some memory to be "accepted" by the guest before it can be used. This mechanism helps prevent malicious hosts from making changes to guest memory.
UEFI specification v2.9 introduced EFI_UNACCEPTED_MEMORY memory type.
This option adds support for unaccepted memory and makes such memory usable by the kernel.
- Depends on
&&
CONFIG_EFI_EMBEDDED_FIRMWARE
- Depends on
- Selects
CRYPTO_LIB_SHA256 if
CONFIG_EFI_SBAT
- Depends on
CONFIG_EFI_SBAT_FILE Embedded SBAT section file path
SBAT section provides a way to improve SecureBoot revocations of UEFI binaries by introducing a generation-based mechanism. With SBAT, older UEFI binaries can be prevented from booting by bumping the minimal required generation for the specific component in the bootloader.
Note: SBAT information is distribution specific, i.e. the owner of the signing SecureBoot certificate must define the SBAT policy. Linux kernel upstream does not define SBAT components and their generations.
See https://github.com/rhboot/shim/blob/main/SBAT.md for the additional details.
Specify a file with SBAT data which is going to be embedded as '.sbat' section into the kernel.
If unsure, leave blank.
CONFIG_UEFI_CPER
CONFIG_UEFI_CPER_ARM
CONFIG_UEFI_CPER_X86
CONFIG_TEE_STMM_EFI TEE-based EFI runtime variable service driver
- Off
- Module
- Built in
Select this config option if TEE is compiled to include StandAloneMM as a separate secure partition. It has the ability to check and store EFI variables on an RPMB or any other non-volatile medium used by StandAloneMM.
Enabling this will change the EFI runtime services from the firmware provided functions to TEE calls.
To compile this driver as a module, choose M here: the module will be called tee_stmm_efi.
- Depends on
&& OPTEE