summaryrefslogtreecommitdiffstats
path: root/virt/kvm
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 11:28:44 +0200
commit64be5007066173d11a4635eedd57d41a3b3a7027 (patch)
treed2d7e085b63a1f2160b04d1b6fcd5994592e5c80 /virt/kvm
parent612819c3c6e67bac8fceaa7cc402f13b1b63f7e4 (diff)
downloadlinux-stable-64be5007066173d11a4635eedd57d41a3b3a7027.tar.gz
linux-stable-64be5007066173d11a4635eedd57d41a3b3a7027.tar.bz2
linux-stable-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/kvm')
-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;