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/include/asm/kvm_emulate.h | |
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/include/asm/kvm_emulate.h')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index eb7033cefe8e..2c0b5b47464f 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h | |||
@@ -304,6 +304,9 @@ enum x86_intercept_stage { | |||
304 | 304 | ||
305 | enum x86_intercept { | 305 | enum x86_intercept { |
306 | x86_intercept_none, | 306 | x86_intercept_none, |
307 | x86_intercept_cr_read, | ||
308 | x86_intercept_cr_write, | ||
309 | x86_intercept_clts, | ||
307 | x86_intercept_lmsw, | 310 | x86_intercept_lmsw, |
308 | x86_intercept_smsw, | 311 | x86_intercept_smsw, |
309 | x86_intercept_lidt, | 312 | x86_intercept_lidt, |