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>
Tue, 1 Feb 2022 13:20:44 +0000 (13:20 +0000)
commit5d9eff3a312763d889cfbf3c8468b6dfb3ab490c
tree77eaba0b3e5386ad83770b7e724e9ceb9c4ef3e9
parentec083bf552c35e10347449e21809f4780f8155d2
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>
xen/arch/x86/spec_ctrl.c