Skip to contentSkip to conversation

x86/svm: add svm lock tests

PATCH New [email protected] 1 participant 1 message Apr 21, 2013 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/svm: add svm lock tests

From: Prasad Joshi <[email protected]>

---
 lib/x86/msr.h |   10 ++++++++++
 x86/svm.c     |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
lib/x86/msr.h +10 -0
index 509a421..0e602d0 100644
@@ -402,5 +402,15 @@
 #define MSR_VM_CR                       0xc0010114
 #define MSR_VM_IGNNE                    0xc0010115
 #define MSR_VM_HSAVE_PA                 0xc0010117
+#define MSR_SVM_KEY			0xc0010118
+
+/* VM CR bits: */
+#define _VM_CR_DPD		0 /* disable internal debugging */
+#define _VM_CR_R_INIT		1 /* non-interrupted INIT causes #SX exception */
+#define _VM_CR_DIS_A20M		2 /* disable A20 masking */
+#define _VM_CR_LOCK		3 /* svm lock */
+#define _VM_CR_SVMDIS		4 /* disable svm */
+
+#define VM_CR_LOCK		(1 << _VM_CR_LOCK)
 
 #endif /* _ASM_X86_MSR_INDEX_H */
x86/svm.c +59 -0

71 lines not on this page · raw message

Signature · 1 line
1.7.10.4