linux-yocto/arch/x86/xen
Roger Pau Monne e5f0581ecb x86/xen: fix memblock_reserve() usage on PVH
commit 4c00673489 upstream.

The current usage of memblock_reserve() in init_pvh_bootparams() is done before
the .bss is zeroed, and that used to be fine when
memblock_reserved_init_regions implicitly ended up in the .meminit.data
section.  However after commit 73db3abdca memblock_reserved_init_regions
ends up in the .bss section, thus breaking it's usage before the .bss is
cleared.

Move and rename the call to xen_reserve_extra_memory() so it's done in the
x86_init.oem.arch_setup hook, which gets executed after the .bss has been
zeroed, but before calling e820__memory_setup().

Fixes: 73db3abdca ("init/modpost: conditionally check section mismatch to __meminit*")
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Message-ID: <20240725073116.14626-3-roger.pau@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
[ Context fixup for hypercall_page removal ]
Signed-off-by: Jason Andryuk <jason.andryuk@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:45:55 +02:00
..
apic.c
debugfs.c
debugfs.h
efi.c xen/efi: refactor deprecated strncpy 2023-09-19 07:04:49 +02:00
enlighten_hvm.c Revert "x86, crash: wrap crash dumping code into crash related ifdefs" 2025-01-10 14:31:36 +01:00
enlighten_pv.c x86/xen: add central hypercall functions 2024-12-19 18:11:36 +01:00
enlighten_pvh.c x86/xen: fix memblock_reserve() usage on PVH 2025-04-25 10:45:55 +02:00
enlighten.c x86/xen: fix balloon target initialization for PVH dom0 2025-04-25 10:45:32 +02:00
grant-table.c
irq.c
Kconfig x86/xen: add CPU dependencies for 32-bit build 2024-01-01 12:42:35 +00:00
Makefile
mmu_hvm.c
mmu_pv.c Grab mm lock before grabbing pt lock 2025-02-21 13:57:12 +01:00
mmu.c
mmu.h
multicalls.c
multicalls.h x86/xen: move paravirt lazy code 2023-09-19 07:04:49 +02:00
p2m.c xen: allow mapping ACPI data using a different physical address 2024-10-04 16:29:43 +02:00
platform-pci-unplug.c
pmu.c
pmu.h
setup.c x86/xen: fix balloon target initialization for PVH dom0 2025-04-25 10:45:32 +02:00
smp_hvm.c
smp_pv.c
smp.c x86/xen: Add some null pointer checking to smp.c 2024-03-26 18:19:10 -04:00
smp.h
spinlock.c
suspend_hvm.c
suspend_pv.c
suspend.c
time.c
trace.c
vga.c
xen-asm.S x86/xen: fix SLS mitigation in xen_hypercall_iret() 2025-01-23 17:21:19 +01:00
xen-head.S x86/xen: add FRAME_END to xen_hypercall_hvm() 2025-02-17 09:40:13 +01:00
xen-ops.h x86/xen: add central hypercall functions 2024-12-19 18:11:36 +01:00