diff options
| author | Lluís Vilanova | 2016-12-26 22:24:40 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2017-01-16 14:40:56 +0100 |
| commit | 82e95ec847757c1a2b6accf0e8312925ada3dca8 (patch) | |
| tree | c216df66c35a995786021fce24a2b830d15c0757 /trace/control.h | |
| parent | trace: Lock vCPU list when initializing dynamic tracing state (diff) | |
| download | qemu-82e95ec847757c1a2b6accf0e8312925ada3dca8.tar.gz qemu-82e95ec847757c1a2b6accf0e8312925ada3dca8.tar.xz qemu-82e95ec847757c1a2b6accf0e8312925ada3dca8.zip | |
trace: Fix dynamic event state on vCPU hot-unplug
We need to disable per-vCPU events on a vCPU that is hot-unplugged to
keep the dynamic event state global counters consistent.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-id: 148278748055.1404.1570530281528619895.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace/control.h')
| -rw-r--r-- | trace/control.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/trace/control.h b/trace/control.h index ccaeac8552..4ea53e2986 100644 --- a/trace/control.h +++ b/trace/control.h @@ -202,6 +202,14 @@ void trace_init_file(const char *file); void trace_init_vcpu(CPUState *vcpu); /** + * trace_fini_vcpu: + * @vcpu: Removed vCPU. + * + * Disable dynamic event state for a hot-unplugged vCPU. + */ +void trace_fini_vcpu(CPUState *vcpu); + +/** * trace_list_events: * * List all available events. |
