diff options
author | Avi Kivity <avi@redhat.com> | 2011-04-21 12:35:41 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-22 08:39:37 -0400 |
commit | 40e19b519caeb93def89c45082d776fccfb96dbb (patch) | |
tree | 1f513c1a623ec94fd7bf13e01a7edc3e4a57b9a1 /arch/x86/include/asm/kvm_emulate.h | |
parent | 5ef39c71d8398115245a5974b488f8703ba3a6b0 (diff) | |
download | op-kernel-dev-40e19b519caeb93def89c45082d776fccfb96dbb.zip op-kernel-dev-40e19b519caeb93def89c45082d776fccfb96dbb.tar.gz |
KVM: SVM: Get rid of x86_intercept_map::valid
By reserving 0 as an invalid x86_intercept_stage, we no longer
need to store a valid flag in x86_intercept_map.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index 127ea3e..28114f5 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h @@ -304,6 +304,7 @@ struct x86_emulate_ctxt { X86EMUL_MODE_PROT64) enum x86_intercept_stage { + X86_ICTP_NONE = 0, /* Allow zero-init to not match anything */ X86_ICPT_PRE_EXCEPT, X86_ICPT_POST_EXCEPT, X86_ICPT_POST_MEMACCESS, |