diff options
author | Lluís Vilanova <vilanova@ac.upc.edu> | 2016-12-26 22:24:46 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-01-16 13:40:56 +0000 |
commit | a47e87151e785977d34e7b726495e7781860ca9f (patch) | |
tree | b207220550273555dfef0b7168c72c9d0f85ff65 /trace | |
parent | 82e95ec847757c1a2b6accf0e8312925ada3dca8 (diff) |
trace: Add event "guest_cpu_exit"
Signals the hot-unplugging of a virtual (guest) CPU.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-id: 148278748597.1404.10546320797997984932.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace')
-rw-r--r-- | trace/control.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trace/control.c b/trace/control.c index cb79bb17ec..56a2632584 100644 --- a/trace/control.c +++ b/trace/control.c @@ -26,6 +26,7 @@ #include "qemu/error-report.h" #include "qemu/config-file.h" #include "monitor/monitor.h" +#include "trace.h" int trace_events_enabled_count; @@ -264,6 +265,8 @@ void trace_fini_vcpu(CPUState *vcpu) TraceEventIter iter; TraceEvent *ev; + trace_guest_cpu_exit(vcpu); + trace_event_iter_init(&iter, NULL); while ((ev = trace_event_iter_next(&iter)) != NULL) { if (trace_event_is_vcpu(ev) && |