mirror-linux/arch
Juergen Gross b189879377 x86/boot: Skip realmode init code when running as Xen PV guest
[ Upstream commit f1e5250094 ]

When running as a Xen PV guest there is no need for setting up the
realmode trampoline, as realmode isn't supported in this environment.

Trying to setup the trampoline has been proven to be problematic in
some cases, especially when trying to debug early boot problems with
Xen requiring to keep the EFI boot-services memory mapped (some
firmware variants seem to claim basically all memory below 1Mb for boot
services).

Introduce new x86_platform_ops operations for that purpose, which can
be set to a NOP by the Xen PV specific kernel boot code.

  [ bp: s/call_init_real_mode/do_init_real_mode/ ]

Fixes: 084ee1c641 ("x86, realmode: Relocator for realmode code")
Suggested-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221123114523.3467-1-jgross@suse.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:16 +01:00
..
alpha alpha: fix syscall entry in !AUDUT_SYSCALL case 2022-12-31 13:31:55 +01:00
arc
arm ARM: mmp: fix timer_read delay 2022-12-31 13:31:54 +01:00
arm64 arch: arm64: apple: t8103: Use standard "iommu" node name 2022-12-31 13:31:54 +01:00
csky
hexagon
ia64
loongarch LoongArch: mm: Fix huge page entry update for virtual machine 2022-12-08 14:59:15 +08:00
m68k
microblaze kbuild: fix "cat: .version: No such file or directory" 2022-11-24 09:26:02 +09:00
mips MIPS: OCTEON: warn only once if deprecated link status is being used 2022-12-31 13:32:00 +01:00
nios2 nios2: add FORCE for vmlinuz.gz 2022-11-27 08:28:41 +09:00
openrisc
parisc
powerpc powerpc/64s: Add missing declaration for machine_check_early_boot() 2022-11-26 00:25:32 +11:00
riscv riscv: dts: microchip: remove pcie node from the sev kit 2022-12-31 13:31:52 +01:00
s390 * Document the interaction between KVM_CAP_HALT_POLL and halt_poll_ns 2022-12-06 10:49:19 -08:00
sh
sparc mm: add dummy pmd_young() for architectures not having it 2022-11-30 14:49:41 -08:00
um
x86 x86/boot: Skip realmode init code when running as Xen PV guest 2022-12-31 13:32:16 +01:00
xtensa
.gitignore
Kconfig