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)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 18 Nov 2022 08:14:09 +0000 (09:14 +0100)
commitd85e3e34940788578eeffd94e8b7e1d28e7278e9
tree0765028787e17cc954ee9717a1cd1fcdc3dacd53
parentfdc6d38d64a20c542b1867ebeb8dd03b98829336
efi: xen: Set EFI_PARAVIRT for Xen dom0 boot on all architectures

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>
arch/x86/platform/efi/efi.c
arch/x86/platform/efi/memmap.c
drivers/firmware/efi/fdtparams.c
drivers/firmware/efi/memmap.c