diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 36786bbb4c0..99bed74779d 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -4516,6 +4516,9 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, | |||
4516 | restart: | 4516 | restart: |
4517 | r = x86_emulate_insn(&vcpu->arch.emulate_ctxt); | 4517 | r = x86_emulate_insn(&vcpu->arch.emulate_ctxt); |
4518 | 4518 | ||
4519 | if (r == EMULATION_INTERCEPTED) | ||
4520 | return EMULATE_DONE; | ||
4521 | |||
4519 | if (r == EMULATION_FAILED) { | 4522 | if (r == EMULATION_FAILED) { |
4520 | if (reexecute_instruction(vcpu, cr2)) | 4523 | if (reexecute_instruction(vcpu, cr2)) |
4521 | return EMULATE_DONE; | 4524 | return EMULATE_DONE; |