]> xenbits.xensource.com Git - xen.git/commit
x86/spec-ctrl: Drop use_spec_ctrl boolean
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jan 2022 16:09:59 +0000 (16:09 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Feb 2022 13:20:44 +0000 (13:20 +0000)
commitec083bf552c35e10347449e21809f4780f8155d2
tree2e2497efc8cfdba9f95b08c3df25ecb72c3756f3
parent15b7611efd497c4b65f350483857082cb70fc348
x86/spec-ctrl: Drop use_spec_ctrl boolean

Several bugfixes have reduced the utility of this variable from it's original
purpose, and now all it does is aid in the setup of SCF_ist_wrmsr.

Simplify the logic by drop the variable, and doubling up the setting of
SCF_ist_wrmsr for the PV and HVM blocks, which will make the AMD SPEC_CTRL
support easier to follow.  Leave a comment explaining why SCF_ist_wrmsr is
still necessary for the VMExit case.

No functional change.

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