]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efi: xen: Set EFI_PARAVIRT for Xen dom0 boot on all architectures
authorArd Biesheuvel <ardb@kernel.org>
Sat, 1 Oct 2022 15:17:36 +0000 (17:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:32:00 +0000 (09:32 +0200)
commit01b3cddfa64dbb1156c79942104efa37e12005c9
tree6789e4121c519894cf09e49b72773f61df80be63
parent0d01140e921757455730dcb6c00e45a0383f1716
efi: xen: Set EFI_PARAVIRT for Xen dom0 boot on all architectures

commit d85e3e34940788578eeffd94e8b7e1d28e7278e9 upstream.

Currently, the EFI_PARAVIRT flag is only used by Xen dom0 boot on x86,
even though other architectures also support pseudo-EFI boot, where the
core kernel is invoked directly and provided with a set of data tables
that resemble the ones constructed by the EFI stub, which never actually
runs in that case.

Let's fix this inconsistency, and always set this flag when booting dom0
via the EFI boot path. Note that Xen on x86 does not provide the EFI
memory map in this case, whereas other architectures do, so move the
associated EFI_PARAVIRT check into the x86 platform code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/platform/efi/efi.c
arch/x86/platform/efi/memmap.c
drivers/firmware/efi/fdtparams.c
drivers/firmware/efi/memmap.c