summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/head64.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2022-06-30 09:14:39 +0200
committerBorislav Petkov <bp@suse.de>2022-07-01 10:57:52 +0200
commit96e8fc5818686d4a1591bb6907e7fdb64ef29884 (patch)
tree52cac6393567e532ed0bf7aa5ceafbeebe5b1b52 /arch/x86/kernel/head64.c
parent03c765b0e3b4cb5063276b086c76f7a612856a9a (diff)
downloadlinux-stable-96e8fc5818686d4a1591bb6907e7fdb64ef29884.tar.gz
linux-stable-96e8fc5818686d4a1591bb6907e7fdb64ef29884.tar.bz2
linux-stable-96e8fc5818686d4a1591bb6907e7fdb64ef29884.zip
x86/xen: Use clear_bss() for Xen PV guests
Instead of clearing the bss area in assembly code, use the clear_bss() function. This requires to pass the start_info address as parameter to xen_start_kernel() in order to avoid the xen_start_info being zeroed again. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Link: https://lore.kernel.org/r/20220630071441.28576-2-jgross@suse.com
Diffstat (limited to 'arch/x86/kernel/head64.c')
-rw-r--r--arch/x86/kernel/head64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index bd4a34100ed0..e7e233209a8c 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -426,7 +426,7 @@ void __init do_early_exception(struct pt_regs *regs, int trapnr)
/* Don't add a printk in there. printk relies on the PDA which is not initialized
yet. */
-static void __init clear_bss(void)
+void __init clear_bss(void)
{
memset(__bss_start, 0,
(unsigned long) __bss_stop - (unsigned long) __bss_start);