diff options
author | Lluís Vilanova | 2016-09-19 14:55:07 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2016-09-28 20:17:55 +0200 |
commit | 2bfe11c8fac96db4f94abbe818fbc964a6744130 (patch) | |
tree | 2d095bb5096637d055082bf85286b5da33d268ef /stubs | |
parent | trace: move hw/virtio/virtio-balloon.c trace points into correct file (diff) | |
download | qemu-2bfe11c8fac96db4f94abbe818fbc964a6744130.tar.gz qemu-2bfe11c8fac96db4f94abbe818fbc964a6744130.tar.xz qemu-2bfe11c8fac96db4f94abbe818fbc964a6744130.zip |
trace: Properly initialize dynamic event states in hot-plugged vCPUs
Every time a vCPU is hot-plugged, it will "inherit" its tracing state
from the global state array. That is, if *any* existing vCPU has an
event enabled, new vCPUs will have too.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-id: 147428970768.15111.7664565956870423529.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/trace-control.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/stubs/trace-control.c b/stubs/trace-control.c index 2dfcd9fb2b..f765a02018 100644 --- a/stubs/trace-control.c +++ b/stubs/trace-control.c @@ -44,3 +44,9 @@ void trace_event_set_vcpu_state_dynamic(CPUState *vcpu, /* should never be called on non-target binaries */ abort(); } + +void trace_init_vcpu(CPUState *vcpu) +{ + /* should never be called on non-target binaries */ + abort(); +} |