x86/xen: disable cpu0 hotplug for xen pv
PATCH 1/1 x86/xen: disable cpu0 hotplug for xen pv
Xen pv guests don't allow cpu0 hotplug, so disable it.
Signed-off-by Juergen Gross <[email protected]>
--- arch/x86/kernel/topology.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/x86/kernel/topology.c +3 -1
@@ -111,8 +111,10 @@ int arch_register_cpu(int num)/* * Currently CPU0 is only hotpluggable on Intel platforms. Other * 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 ;/*
Signature · 1 line
2.16.4
tip-bot for Juergen Gross
merge bot[tip:x86/urgent] x86/xen: Disable CPU0 hotplug for Xen PV
x86/xen: Disable CPU0 hotplug for Xen PV
Commit-ID: 999696752db1099aba595aac4f8d881f8c7cf4e6 Gitweb: https://git.kernel.org/tip/999696752db1099aba595aac4f8d881f8c7cf4e6 Author: Juergen Gross <[email protected]> AuthorDate: Wed, 12 Sep 2018 19:41:22 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Wed, 12 Sep 2018 21:15:02 +0200
x86/xen: Disable CPU0 hotplug for Xen PV
Xen PV guests don't allow CPU0 hotplug, so disable it.
Signed-off-by Juergen Gross <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/topology.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/x86/kernel/topology.c +3 -1
@@ -111,8 +111,10 @@ int arch_register_cpu(int num)/* * Currently CPU0 is only hotpluggable on Intel platforms. Other * 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 ;/*