File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Documentation/admin-guide/hw-vuln Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ The possible values in this file are:
80
80
- The processor is not vulnerable.
81
81
* - KVM: Mitigation: Split huge pages
82
82
- Software changes mitigate this issue.
83
+ * - KVM: Mitigation: VMX unsupported
84
+ - KVM is not vulnerable because Virtual Machine Extensions (VMX) is not supported.
85
+ * - KVM: Mitigation: VMX disabled
86
+ - KVM is not vulnerable because Virtual Machine Extensions (VMX) is disabled.
83
87
* - KVM: Vulnerable
84
88
- The processor is vulnerable, but no mitigation enabled
85
89
Original file line number Diff line number Diff line change 31
31
#include <asm/intel-family.h>
32
32
#include <asm/e820/api.h>
33
33
#include <asm/hypervisor.h>
34
+ #include <asm/tlbflush.h>
34
35
35
36
#include "cpu.h"
36
37
@@ -1549,7 +1550,12 @@ static ssize_t l1tf_show_state(char *buf)
1549
1550
1550
1551
static ssize_t itlb_multihit_show_state (char * buf )
1551
1552
{
1552
- if (itlb_multihit_kvm_mitigation )
1553
+ if (!boot_cpu_has (X86_FEATURE_MSR_IA32_FEAT_CTL ) ||
1554
+ !boot_cpu_has (X86_FEATURE_VMX ))
1555
+ return sprintf (buf , "KVM: Mitigation: VMX unsupported\n" );
1556
+ else if (!(cr4_read_shadow () & X86_CR4_VMXE ))
1557
+ return sprintf (buf , "KVM: Mitigation: VMX disabled\n" );
1558
+ else if (itlb_multihit_kvm_mitigation )
1553
1559
return sprintf (buf , "KVM: Mitigation: Split huge pages\n" );
1554
1560
else
1555
1561
return sprintf (buf , "KVM: Vulnerable\n" );
You can’t perform that action at this time.
0 commit comments