acrn-kernel/arch/x86/xen
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
..
Kconfig xen/pv: support selecting safe/unsafe msr accesses 2022-10-11 10:51:05 +02:00
Makefile
apic.c
debugfs.c
debugfs.h
efi.c
enlighten.c
enlighten_hvm.c
enlighten_pv.c x86/boot: Skip realmode init code when running as Xen PV guest 2022-12-31 13:32:16 +01:00
enlighten_pvh.c
grant-table.c
irq.c
mmu.c
mmu.h
mmu_hvm.c
mmu_pv.c
multicalls.c
multicalls.h
p2m.c
platform-pci-unplug.c
pmu.c x86/xen: silence smatch warning in pmu_msr_chk_emulated() 2022-11-03 10:23:26 +01:00
pmu.h
setup.c x86/xen: Use kstrtobool() instead of strtobool() 2022-11-14 13:29:01 +01:00
smp.c x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() 2022-12-31 13:31:59 +01:00
smp.h
smp_hvm.c
smp_pv.c x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() 2022-12-31 13:31:59 +01:00
spinlock.c x86/xen: Fix memory leak in xen_init_lock_cpu() 2022-12-31 13:31:59 +01:00
suspend.c
suspend_hvm.c
suspend_pv.c
time.c
trace.c
vga.c
xen-asm.S
xen-head.S
xen-ops.h