Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146543
b: refs/heads/master
c: ba8afb6
h: refs/heads/master
i:
  146541: 201a232
  146539: 6cc689b
  146535: b0a622f
  146527: 8572f85
v: v3
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed Jun 10, 2009
1 parent 2e1b190 commit 6efed43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e637b8238ad1783ebdd113bd34cd6982dec1006d
refs/heads/master: ba8afb6b0a2c7e06da760ffe5d078245058619b5
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -2413,6 +2413,11 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
}
}

if (emulation_type & EMULTYPE_SKIP) {
kvm_rip_write(vcpu, vcpu->arch.emulate_ctxt.decode.eip);
return EMULATE_DONE;
}

r = x86_emulate_insn(&vcpu->arch.emulate_ctxt, &emulate_ops);

if (vcpu->arch.pio.string)
Expand Down

0 comments on commit 6efed43

Please sign in to comment.