aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorKazuya Saito <saito.kazuya@jp.fujitsu.com>2013-03-29 13:27:52 +0900
committerStefan Hajnoczi <stefanha@redhat.com>2013-05-03 13:58:09 +0200
commitb76ac80a5ca9f2e19405419172c0dcaf0370d4f5 (patch)
tree644ef06330054f239318783d6c09b3389d15a65b /kvm-all.c
parent9c7757290c6d80c2f5bde6fa71d2c9fe2b331c8c (diff)
kvm-all: add kvm_run_exit tracepoint
This patch enable us to know exit reason of KVM_RUN. It will help us know where the trouble is caused. Signed-off-by: Kazuya Saito <saito.kazuya@jp.fujitsu.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 4f73b98f33..3a31602359 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1627,6 +1627,7 @@ int kvm_cpu_exec(CPUArchState *env)
abort();
}
+ trace_kvm_run_exit(cpu->cpu_index, run->exit_reason);
switch (run->exit_reason) {
case KVM_EXIT_IO:
DPRINTF("handle_io\n");