]> xenbits.xensource.com Git - xen.git/commit
x86/AMD: unbreak CPU hotplug on AMD systems without RstrFpErrPtrs
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 10 Dec 2019 10:07:22 +0000 (11:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Dec 2019 10:07:22 +0000 (11:07 +0100)
commit0f3cdbdf7a7f33952121a5bde02cae2b3f703f67
tree64e2ff6e70a9d40604ddc4371819b20bd0f3c907
parentb73aad4c8b6a767ce15cc8cb65f9eeab7bfccdae
x86/AMD: unbreak CPU hotplug on AMD systems without RstrFpErrPtrs

If the feature is not present Xen will try to force X86_BUG_FPU_PTRS
feature at CPU identification time. This is especially noticeable in
PV-shim that usually hotplugs its vCPUs. We either need to restrict this
action for boot CPU only or allow secondary CPUs to modify
forced CPU capabilities at runtime. Choose the former since modifying
forced capabilities out of boot path leaves the system in potentially
inconsistent state.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/amd.c