aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorRoger Pau Monne <[email protected]>2024-07-25 07:31:15 +0000
committerJuergen Gross <[email protected]>2024-07-25 11:11:08 +0000
commit4c006734898a113a64a528027274a571b04af95a (patch)
treebb2cbb8b5571b66d8a249657d83b32530d674262 /rust/helpers.c
parentx86/xen: move xen_reserve_extra_memory() (diff)
downloadkernel-4c006734898a113a64a528027274a571b04af95a.tar.gz
kernel-4c006734898a113a64a528027274a571b04af95a.zip
x86/xen: fix memblock_reserve() usage on PVH
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 73db3abdca58c 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: 73db3abdca58c ("init/modpost: conditionally check section mismatch to __meminit*") Signed-off-by: Roger Pau MonnĂ© <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Message-ID: <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions