]> xenbits.xensource.com Git - xen.git/commit
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>
Fri, 4 Feb 2022 15:45:25 +0000 (15:45 +0000)
commit0da8f3d23f86dafc4781cb75f46722841b87bdbf
treeaf4f2991dbdedd080c3aaf73f2bd0a4afcd19e82
parent5c704f0e5ffd609ee98bb2240fe56e1be0611d63
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>
(cherry picked from commit a7e7c7260cde78a148810db5320cbf39686c3e09)
xen/arch/x86/cpuid.c
xen/arch/x86/hvm/svm/svm.c
xen/include/public/arch-x86/cpufeatureset.h
xen/tools/gen-cpuid.py