]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/spec-ctrl: Use a taint for CET without MSR_SPEC_CTRL
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Jun 2023 10:09:11 +0000 (11:09 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 16 Jun 2023 13:23:38 +0000 (14:23 +0100)
Reword the comment for 'S' to include an incompatible set of features on the
same core.

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

index ec4bcdd97e04385b3772a9577cf92dd670add811..7ad7494105ccfa0b62648220bb12a1101474e816 100644 (file)
@@ -1132,7 +1132,10 @@ void __init init_speculation_mitigations(void)
     if ( read_cr4() & X86_CR4_CET )
     {
         if ( !has_spec_ctrl )
+        {
             printk(XENLOG_WARNING "?!? CET active, but no MSR_SPEC_CTRL?\n");
+            add_taint(TAINT_CPU_OUT_OF_SPEC);
+        }
         else if ( opt_ibrs == -1 )
             opt_ibrs = ibrs = true;
 
index fd975ae21ebc7b4de2788680a7173b493471c002..719b08d6c76a3f0deb040b19e54031000697b172 100644 (file)
@@ -373,7 +373,7 @@ unsigned int tainted;
  *  'H' - HVM forced emulation prefix is permitted.
  *  'I' - Platform is insecure (usually due to an errata on the platform).
  *  'M' - Machine had a machine check experience.
- *  'S' - Out of spec CPU (One core has a feature incompatible with others).
+ *  'S' - Out of spec CPU (Incompatible features on one or more cores).
  *
  *      The string is overwritten by the next call to print_taint().
  */