summaryrefslogtreecommitdiff
path: root/drivers/kvm/kvm_vmx.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/kvm_vmx.h')
-rw-r--r--drivers/kvm/kvm_vmx.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_vmx.h b/drivers/kvm/kvm_vmx.h
new file mode 100644
index 000000000000..87e12d2bfa16
--- /dev/null
+++ b/drivers/kvm/kvm_vmx.h
@@ -0,0 +1,14 @@
+#ifndef __KVM_VMX_H
+#define __KVM_VMX_H
+
+#ifdef __x86_64__
+/*
+ * avoid save/load MSR_SYSCALL_MASK and MSR_LSTAR by std vt
+ * mechanism (cpu bug AA24)
+ */
+#define NR_BAD_MSRS 2
+#else
+#define NR_BAD_MSRS 0
+#endif
+
+#endif