]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/kvm/svm.c
KVM: x86: Exit to userspace on emulation skip failure
[linux.git] / arch / x86 / kvm / svm.c
index c7aa55e192c09080699c34d801bed40793bb78eb..fc40052fa3347b925fde792c9d2b1f796b3c895c 100644 (file)
@@ -3885,8 +3885,8 @@ static int task_switch_interception(struct vcpu_svm *svm)
            int_type == SVM_EXITINTINFO_TYPE_SOFT ||
            (int_type == SVM_EXITINTINFO_TYPE_EXEPT &&
             (int_vec == OF_VECTOR || int_vec == BP_VECTOR))) {
-               if (skip_emulated_instruction(&svm->vcpu) != EMULATE_DONE)
-                       goto fail;
+               if (skip_emulated_instruction(&svm->vcpu) == EMULATE_USER_EXIT)
+                       return 0;
        }
 
        if (int_type != SVM_EXITINTINFO_TYPE_SOFT)