x86/cpuid: Enable MSR_SPEC_CTRL in SVM guests by default
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Jan 2022 20:29:09 +0000 (20:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Feb 2022 13:20:44 +0000 (13:20 +0000)
commita7e7c7260cde78a148810db5320cbf39686c3e09
treeadd3d5bee42a29149bb601a3df7a69efc0d3195b
parent22b9add22b4a9af37305c8441fec12cb26bd142b
x86/cpuid: Enable MSR_SPEC_CTRL in SVM guests by default

With all other pieces in place, MSR_SPEC_CTRL is fully working for HVM guests.

Update the CPUID derivation logic (both PV and HVM to avoid losing subtle
changes), drop the MSR intercept, and explicitly enable the CPUID bits for HVM
guests.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/arch/x86/hvm/svm/svm.c
xen/include/public/arch-x86/cpufeatureset.h
xen/tools/gen-cpuid.py