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>
Fri, 4 Feb 2022 15:45:25 +0000 (15:45 +0000)
commit7f34b6a895d10744bab32fc843246c45da444d8b
tree1de1124fd16374dffdd1dff228297565be30ebfc
parentdf2e2952b8c8087988f240a08a9417aa503cbd1c
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>
(cherry picked from commit ec083bf552c35e10347449e21809f4780f8155d2)
xen/arch/x86/spec_ctrl.c