]> xenbits.xensource.com Git - xen.git/commit
x86/msr: Split MSR_SPEC_CTRL handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Jan 2022 13:52:47 +0000 (13:52 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 20 Jan 2022 16:32:11 +0000 (16:32 +0000)
commit6536688439dbca1d08fd6db5be29c39e3917fb2f
treefa2ad6726cd3c1567ddeb7ce10fc56e9b9c06503
parent88d3ff7ab15da277a85b39735797293fb541c718
x86/msr: Split MSR_SPEC_CTRL handling

In order to fix a VT-x bug, and support MSR_SPEC_CTRL on AMD, move
MSR_SPEC_CTRL handling into the new {pv,hvm}_{get,set}_reg() infrastructure.

Duplicate the msrs->spec_ctrl.raw accesses in the PV and VT-x paths for now.
The SVM path is currently unreachable because of the CPUID policy.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/msr.c
xen/arch/x86/pv/emulate.c