x86/spec_ctrl: Split X86_FEATURE_SC_MSR into PV and HVM variants
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 17 Apr 2018 13:15:04 +0000 (14:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 May 2018 17:41:33 +0000 (18:41 +0100)
commit5f48754af994d10559e7702ed8cb2a2e5cbcb2bc
tree2474679682fcbd592f505cf02d0b6679fe1177f8
parentb0a4c9ee50da034a5ddf8ac6237a3f2093a5c541
x86/spec_ctrl: Split X86_FEATURE_SC_MSR into PV and HVM variants

In order to separately control whether MSR_SPEC_CTRL is virtualised for PV and
HVM guests, split the feature used to control runtime alternatives into two.
Xen will use MSR_SPEC_CTRL itself if either of these features are active.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
(cherry picked from commit fa9eb09d446a1279f5e861e6b84fa8675dabf148)

Gbp-Pq: Name x86spec_ctrl-split-x86_feature_sc_msr-in.patch
xen/arch/x86/spec_ctrl.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/spec_ctrl_asm.h