x86/speculation: Simplify sysfs report of VMX L1TF vulnerability
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 5 Aug 2018 14:07:45 +0000 (16:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 5 Aug 2018 15:10:19 +0000 (17:10 +0200)
commitea156d192f5257a5bf393d33910d3b481bf8a401
tree6554bd0d0a08e6c893251c04e1c5305b8a5fe3fa
parent58331136136935c631c2b5f06daf4c3006416e91
x86/speculation: Simplify sysfs report of VMX L1TF vulnerability

Three changes to the content of the sysfs file:

 - If EPT is disabled, L1TF cannot be exploited even across threads on the
   same core, and SMT is irrelevant.

 - If mitigation is completely disabled, and SMT is enabled, print "vulnerable"
   instead of "vulnerable, SMT vulnerable"

 - Reorder the two parts so that the main vulnerability state comes first
   and the detail on SMT is second.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/bugs.c