x86/spec-ctrl: Introduce new has_spec_ctrl boolean
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jan 2022 17:14:48 +0000 (17:14 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 4 Feb 2022 15:45:25 +0000 (15:45 +0000)
commit08fc03c855c071e9b1aaaa96403f2a90433336a7
treebd0958a6b7b0605e908b642bfbfe087645a8340c
parent7f34b6a895d10744bab32fc843246c45da444d8b
x86/spec-ctrl: Introduce new has_spec_ctrl boolean

Most MSR_SPEC_CTRL setup will be common between Intel and AMD.  Instead of
opencoding an OR of two features everywhere, introduce has_spec_ctrl instead.

Reword the comment above the Intel specific alternatives block to highlight
that it is Intel specific, and pull the setting of default_xen_spec_ctrl.IBRS
out because it will want to be common.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 5d9eff3a312763d889cfbf3c8468b6dfb3ab490c)
xen/arch/x86/spec_ctrl.c