diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-02-24 12:59:15 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-25 06:53:14 -0400 |
commit | 4a810181c8bcd73112f5c62b205b5583fd4a197f (patch) | |
tree | 4e5d4e85771d860c85953b7c2ddfa23f0b5df129 /arch/x86/include/asm | |
parent | 2e554e8d67926024b01e97d2fe652810165354e2 (diff) |
KVM: SVM: Implement emulation of vm_cr msr
This patch implements the emulation of the vm_cr msr for
nested svm.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/svm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h index 38638cd2fa4c..b26a38d85356 100644 --- a/arch/x86/include/asm/svm.h +++ b/arch/x86/include/asm/svm.h | |||
@@ -115,6 +115,10 @@ struct __attribute__ ((__packed__)) vmcb_control_area { | |||
115 | #define SVM_IOIO_SIZE_MASK (7 << SVM_IOIO_SIZE_SHIFT) | 115 | #define SVM_IOIO_SIZE_MASK (7 << SVM_IOIO_SIZE_SHIFT) |
116 | #define SVM_IOIO_ASIZE_MASK (7 << SVM_IOIO_ASIZE_SHIFT) | 116 | #define SVM_IOIO_ASIZE_MASK (7 << SVM_IOIO_ASIZE_SHIFT) |
117 | 117 | ||
118 | #define SVM_VM_CR_VALID_MASK 0x001fULL | ||
119 | #define SVM_VM_CR_SVM_LOCK_MASK 0x0008ULL | ||
120 | #define SVM_VM_CR_SVM_DIS_MASK 0x0010ULL | ||
121 | |||
118 | struct __attribute__ ((__packed__)) vmcb_seg { | 122 | struct __attribute__ ((__packed__)) vmcb_seg { |
119 | u16 selector; | 123 | u16 selector; |
120 | u16 attrib; | 124 | u16 attrib; |