diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-04-12 13:36:57 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 11:48:42 +0300 |
commit | ba8afb6b0a2c7e06da760ffe5d078245058619b5 (patch) | |
tree | cfa06923a20919ad95e1202cfaab78d80b85998f /arch/x86/include/asm/kvm_host.h | |
parent | e637b8238ad1783ebdd113bd34cd6982dec1006d (diff) | |
download | lwn-ba8afb6b0a2c7e06da760ffe5d078245058619b5.tar.gz lwn-ba8afb6b0a2c7e06da760ffe5d078245058619b5.zip |
KVM: x86 emulator: Add new mode of instruction emulation: skip
In the new mode instruction is decoded, but not executed. The EIP
is moved to point after the instruction.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 0e3a7c6e522c..cb306cff2b49 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -562,6 +562,7 @@ enum emulation_result { #define EMULTYPE_NO_DECODE (1 << 0) #define EMULTYPE_TRAP_UD (1 << 1) +#define EMULTYPE_SKIP (1 << 2) int emulate_instruction(struct kvm_vcpu *vcpu, struct kvm_run *run, unsigned long cr2, u16 error_code, int emulation_type); void kvm_report_emulation_failure(struct kvm_vcpu *cvpu, const char *context); |