]> err.no Git - linux-2.6/blobdiff - arch/x86/kvm/svm.c
KVM: x86 emulator: Only allow VMCALL/VMMCALL trapped by #UD
[linux-2.6] / arch / x86 / kvm / svm.c
index 33f77b044c5265a55c712c887a448010438089a3..de755cb1431dcef84617b04e29eacb5a06fc59d0 100644 (file)
@@ -942,7 +942,7 @@ static int ud_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
 {
        int er;
 
-       er = emulate_instruction(&svm->vcpu, kvm_run, 0, 0, 0);
+       er = emulate_instruction(&svm->vcpu, kvm_run, 0, 0, EMULTYPE_TRAP_UD);
        if (er != EMULATE_DONE)
                kvm_queue_exception(&svm->vcpu, UD_VECTOR);
        return 1;