aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/smp_pv.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2024-07-15 09:47:08 +0200
committerJuergen Gross <jgross@suse.com>2024-07-23 12:23:20 +0200
commit368990a7fe30737c990f628a60d26d9854a9e690 (patch)
tree3af63590ddc994168d08568094fb7e1637c1e504 /arch/x86/xen/smp_pv.c
parentx86/xen: remove deprecated xen_nopvspin boot parameter (diff)
downloadlinux-368990a7fe30737c990f628a60d26d9854a9e690.tar.gz
linux-368990a7fe30737c990f628a60d26d9854a9e690.zip
xen: fix multicall debug data referencing
The recent adding of multicall debug mixed up the referencing of the debug data. A __percpu tagged pointer can't be initialized with a plain pointer, so use another percpu variable for the pointer and set it on each new cpu via a function. Fixes: 942d917cb92a ("xen: make multicall debug boot time selectable") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202407151106.5s7Mnfpz-lkp@intel.com/ Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'arch/x86/xen/smp_pv.c')
-rw-r--r--arch/x86/xen/smp_pv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/smp_pv.c b/arch/x86/xen/smp_pv.c
index 7ea57f728b89..6863d3da7dec 100644
--- a/arch/x86/xen/smp_pv.c
+++ b/arch/x86/xen/smp_pv.c
@@ -305,6 +305,7 @@ 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