]> xenbits.xensource.com Git - xen.git/commit
x86: possibly bring up all CPUs even if not all are supposed to be used
authorJan Beulich <JBeulich@suse.com>
Thu, 19 Jul 2018 10:32:06 +0000 (04:32 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Jul 2018 12:43:33 +0000 (13:43 +0100)
commit8797d20a6ec2dd75195585a107ce345c51c0a59a
tree1b5873b41dc6cd9eff2dbea9124497b64a92e41f
parent2e6c8f182c9c50129b1c7a620242861e6ad6a9fb
x86: possibly bring up all CPUs even if not all are supposed to be used

Reportedly Intel CPUs which can't broadcast #MC to all targeted
cores/threads because some have CR4.MCE clear will shut down. Therefore
we want to keep CR4.MCE enabled when offlining a CPU, and we need to
bring up all CPUs in order to be able to set CR4.MCE in the first place.

The use of clear_in_cr4() in cpu_mcheck_disable() was ill advised
anyway, and to avoid future similar mistakes I'm removing clear_in_cr4()
altogether right here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/mpparse.c
xen/arch/x86/setup.c
xen/include/asm-x86/processor.h