x86/msr: Split MSR_SPEC_CTRL handling
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jan 2022 12:39:16 +0000 (13:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Jan 2022 12:39:16 +0000 (13:39 +0100)
commitcc6fe1bb13197ddc79af480c3c74ce6d6ed3ef2c
treee5d0d52a12b36933bc881a76a749d02be6afe4ba
parent20b00921f8a62b1b19d893dd468473161706e02d
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>
master commit: 6536688439dbca1d08fd6db5be29c39e3917fb2f
master date: 2022-01-20 16:32:11 +0000
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/msr.c
xen/arch/x86/pv/emulate.c