Skip to content

Commit 9996967

Browse files
jgross1Ingo Molnar
authored andcommitted
x86/xen: Disable CPU0 hotplug for Xen PV
Xen PV guests don't allow CPU0 hotplug, so disable it. Signed-off-by: Juergen Gross <jgross@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: boris.ostrovsky@oracle.com Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/20180912174122.24282-1-jgross@suse.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 6a92b11 commit 9996967

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/x86/kernel/topology.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ int arch_register_cpu(int num)
111111
/*
112112
* Currently CPU0 is only hotpluggable on Intel platforms. Other
113113
* vendors can add hotplug support later.
114+
* Xen PV guests don't support CPU0 hotplug at all.
114115
*/
115-
if (c->x86_vendor != X86_VENDOR_INTEL)
116+
if (c->x86_vendor != X86_VENDOR_INTEL ||
117+
boot_cpu_has(X86_FEATURE_XENPV))
116118
cpu0_hotpluggable = 0;
117119

118120
/*

0 commit comments

Comments
 (0)