diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-04-04 06:39:28 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-11 07:57:01 -0400 |
commit | cfec82cb7d313ae5b2c2dbb974401d7c214c7b09 (patch) | |
tree | 63351befc6b9981127ac8dd2d22149d3ddf75806 /arch/x86/kvm/x86.c | |
parent | 8a76d7f25f8f24fc5a328c8e15e4a7313cf141b9 (diff) |
KVM: SVM: Add intercept check for emulated cr accesses
This patch adds all necessary intercept checks for
instructions that access the crX registers.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index eebe5465c8ce..0d6524fa2aff 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -60,19 +60,6 @@ | |||
60 | #include <asm/div64.h> | 60 | #include <asm/div64.h> |
61 | 61 | ||
62 | #define MAX_IO_MSRS 256 | 62 | #define MAX_IO_MSRS 256 |
63 | #define CR0_RESERVED_BITS \ | ||
64 | (~(unsigned long)(X86_CR0_PE | X86_CR0_MP | X86_CR0_EM | X86_CR0_TS \ | ||
65 | | X86_CR0_ET | X86_CR0_NE | X86_CR0_WP | X86_CR0_AM \ | ||
66 | | X86_CR0_NW | X86_CR0_CD | X86_CR0_PG)) | ||
67 | #define CR4_RESERVED_BITS \ | ||
68 | (~(unsigned long)(X86_CR4_VME | X86_CR4_PVI | X86_CR4_TSD | X86_CR4_DE\ | ||
69 | | X86_CR4_PSE | X86_CR4_PAE | X86_CR4_MCE \ | ||
70 | | X86_CR4_PGE | X86_CR4_PCE | X86_CR4_OSFXSR \ | ||
71 | | X86_CR4_OSXSAVE \ | ||
72 | | X86_CR4_OSXMMEXCPT | X86_CR4_VMXE)) | ||
73 | |||
74 | #define CR8_RESERVED_BITS (~(unsigned long)X86_CR8_TPR) | ||
75 | |||
76 | #define KVM_MAX_MCE_BANKS 32 | 63 | #define KVM_MAX_MCE_BANKS 32 |
77 | #define KVM_MCE_CAP_SUPPORTED (MCG_CTL_P | MCG_SER_P) | 64 | #define KVM_MCE_CAP_SUPPORTED (MCG_CTL_P | MCG_SER_P) |
78 | 65 | ||