KVM: x86 emulator: Don't write-back cpu-state on X86EMUL_INTERCEPTED
[deliverable/linux.git] / arch / x86 / kvm / x86.c
index 36786bbb4c095f0a8a253c05ae38d1623295fbe1..99bed74779d246653afa846f011d24fef6601fe0 100644 (file)
@@ -4516,6 +4516,9 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu,
 restart:
        r = x86_emulate_insn(&vcpu->arch.emulate_ctxt);
 
+       if (r == EMULATION_INTERCEPTED)
+               return EMULATE_DONE;
+
        if (r == EMULATION_FAILED) {
                if (reexecute_instruction(vcpu, cr2))
                        return EMULATE_DONE;
This page took 0.02917 seconds and 5 git commands to generate.