aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/smp_pv.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2025-03-27 20:06:02 +0100
committerJuergen Gross <jgross@suse.com>2025-04-11 09:44:50 +0200
commit715ad3e0ec2b13c27335749f27a5c9f0c0e84064 (patch)
tree2dfa777509caa559a0f22b9f6ed764e3d54c0d68 /arch/x86/xen/smp_pv.c
parentx86/xen: disable CPU idle and frequency drivers for PVH dom0 (diff)
downloadlinux-715ad3e0ec2b13c27335749f27a5c9f0c0e84064.tar.gz
linux-715ad3e0ec2b13c27335749f27a5c9f0c0e84064.zip
xen: fix multicall debug feature
Initializing a percpu variable with the address of a struct tagged as .initdata is breaking the build with CONFIG_SECTION_MISMATCH_WARN_ONLY not set to "y". Fix that by using an access function instead returning the .initdata struct address if the percpu space of the struct hasn't been allocated yet. Fixes: 368990a7fe30 ("xen: fix multicall debug data referencing") Reported-by: Borislav Petkov <bp@alien8.de> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Acked-by: "Borislav Petkov (AMD)" <bp@alien8.de> Tested-by: "Borislav Petkov (AMD)" <bp@alien8.de> Signed-off-by: Juergen Gross <jgross@suse.com> Message-ID: <20250327190602.26015-1-jgross@suse.com>
Diffstat (limited to 'arch/x86/xen/smp_pv.c')
-rw-r--r--arch/x86/xen/smp_pv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c
index 688ff59318ae..9bb8ff8bff30 100644
--- a/arch/x86/xen/smp_pv.c
+++ b/arch/x86/xen/smp_pv.c
@@ -305,7 +305,6 @@ static int xen_pv_kick_ap(unsigned int cpu, struct task_struct *idle)
return rc;
xen_pmu_init(cpu);
- mc_percpu_init(cpu);
/*
* Why is this a BUG? If the hypercall fails then everything can be