summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-10-24 16:49:08 +0200
committerAvi Kivity <avi@redhat.com>2011-01-12 10:28:44 +0100
commit64be5007066173d11a4635eedd57d41a3b3a7027 (patch)
treed2d7e085b63a1f2160b04d1b6fcd5994592e5c80 /virt
parentKVM: propagate fault r/w information to gup(), allow read-only memory (diff)
downloadlinux-64be5007066173d11a4635eedd57d41a3b3a7027.tar.xz
linux-64be5007066173d11a4635eedd57d41a3b3a7027.zip
KVM: x86: trace "exit to userspace" event
Add tracepoint for userspace exit. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 2803b4db2a38..880370caf9ed 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -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;