]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
efi: Enable BGRT loading under Xen
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 9 Mar 2026 12:17:23 +0000 (13:17 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 10 Mar 2026 20:56:46 +0000 (21:56 +0100)
commiteaeff8411fcafc33da66a78b10566749d353ca2f
treeb421300062ed6e297ad763371e78367abce626a2
parent80e80a703e18aa7d55fe26e4504c58a6f6c4ff07
efi: Enable BGRT loading under Xen

The BGRT table can be parsed if EFI_PARAVIRT is enabled, even if
EFI_MEMMAP is not. Xen will take care of preserving the image even if
EfiBootServicesData memory is reclaimed already, or invalidate the table
if it didn't preserve it - in both cases accesing the table itself under
virt is safe. Also allow the ESRT to be in reclaimable memory, as that
is where future Xen versions will put it.
This is similar approach as was taken for ESRT table in 01de145dc7fb
"efi: Actually enable the ESRT under Xen".

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi-bgrt.c