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 x86/xen/apic: Mark apic __ro_after_init 2023-08-09 12:00:46 -07:00
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 cpuidle, xenpv: Make more PARAVIRT_XXL noinstr clean 2023-01-13 11:48:16 +01:00
Kconfig x86/xen: add CPU dependencies for 32-bit build 2024-01-01 12:42:35 +00:00
Makefile x86/PVH: obtain VGA console info in Dom0 2023-03-14 15:20:51 +01:00
mmu_hvm.c proc/vmcore: convert oldmem_pfn_is_ram callback to more generic vmcore callbacks 2021-11-09 10:02:48 -08:00
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 x86: xen: platform-pci-unplug: use pr_err() and pr_warn() instead of raw printk() 2021-08-30 12:09:54 +02:00
pmu.c x86/xen: silence smatch warning in pmu_msr_chk_emulated() 2022-11-03 10:23:26 +01:00
pmu.h xen: fix is_xen_pmu() 2022-03-25 14:22:53 -05:00
setup.c x86/xen: fix balloon target initialization for PVH dom0 2025-04-25 10:45:32 +02:00
smp_hvm.c x86/smpboot: Switch to hotplug core state synchronization 2023-05-15 13:44:56 +02:00
smp_pv.c x86/xen/pv: Pretend that it found SMP configuration 2023-08-09 11:58:21 -07:00
smp.c x86/xen: Add some null pointer checking to smp.c 2024-03-26 18:19:10 -04:00
smp.h x86: xen: add missing prototypes 2023-06-26 07:47:11 +02:00
spinlock.c x86/xen: Fix memory leak in xen_init_lock_cpu() 2022-12-05 12:59:50 +01:00
suspend_hvm.c x86/xen: Add support for HVMOP_set_evtchn_upcall_vector 2022-08-12 11:28:21 +02:00
suspend_pv.c
suspend.c
time.c x86/tsc: Provide sched_clock_noinstr() 2023-06-05 21:11:08 +02:00
trace.c
vga.c x86/PVH: obtain VGA console info in Dom0 2023-03-14 15:20:51 +01:00
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