KVM: x86: trace "exit to userspace" event
[linux-2.6.git] / virt / kvm / kvm_main.c
index 2803b4d..880370c 100644 (file)
@@ -1562,6 +1562,7 @@ static long kvm_vcpu_ioctl(struct file *filp,
                if (arg)
                        goto out;
                r = kvm_arch_vcpu_ioctl_run(vcpu, vcpu->run);
+               trace_kvm_userspace_exit(vcpu->run->exit_reason, r);
                break;
        case KVM_GET_REGS: {
                struct kvm_regs *kvm_regs;