aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/svm.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2010-12-21 05:12:04 -0500
committerAvi Kivity <avi@redhat.com>2011-01-12 04:31:03 -0500
commit7ff76d58a9dc03a38b86d283abcaae2ac3c74fe3 (patch)
treef45fdc961458c760f4d8a64f4f5e9269ce82bc38 /arch/x86/include/asm/svm.h
parentddce97aac5405e0b2b8b2191cb65b5a48eb14145 (diff)
KVM: SVM: enhance MOV CR intercept handler
Newer SVM implementations provide the GPR number in the VMCB, so that the emulation path is no longer necesarry to handle CR register access intercepts. Implement the handling in svm.c and use it when the info is provided. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/svm.h')
-rw-r--r--arch/x86/include/asm/svm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h
index f7087bf9caf0..f0ffb8184089 100644
--- a/arch/x86/include/asm/svm.h
+++ b/arch/x86/include/asm/svm.h
@@ -260,6 +260,8 @@ struct __attribute__ ((__packed__)) vmcb {
260#define SVM_EXITINFOSHIFT_TS_REASON_JMP 38 260#define SVM_EXITINFOSHIFT_TS_REASON_JMP 38
261#define SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE 44 261#define SVM_EXITINFOSHIFT_TS_HAS_ERROR_CODE 44
262 262
263#define SVM_EXITINFO_REG_MASK 0x0F
264
263#define SVM_EXIT_READ_CR0 0x000 265#define SVM_EXIT_READ_CR0 0x000
264#define SVM_EXIT_READ_CR3 0x003 266#define SVM_EXIT_READ_CR3 0x003
265#define SVM_EXIT_READ_CR4 0x004 267#define SVM_EXIT_READ_CR4 0x004