Commit 99969675 authored by Juergen Gross's avatar Juergen Gross Committed by Ingo Molnar

x86/xen: Disable CPU0 hotplug for Xen PV

Xen PV guests don't allow CPU0 hotplug, so disable it.
Signed-off-by: default avatarJuergen 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.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 6a92b111
...@@ -111,8 +111,10 @@ int arch_register_cpu(int num) ...@@ -111,8 +111,10 @@ int arch_register_cpu(int num)
/* /*
* Currently CPU0 is only hotpluggable on Intel platforms. Other * Currently CPU0 is only hotpluggable on Intel platforms. Other
* vendors can add hotplug support later. * vendors can add hotplug support later.
* Xen PV guests don't support CPU0 hotplug at all.
*/ */
if (c->x86_vendor != X86_VENDOR_INTEL) if (c->x86_vendor != X86_VENDOR_INTEL ||
boot_cpu_has(X86_FEATURE_XENPV))
cpu0_hotpluggable = 0; cpu0_hotpluggable = 0;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment