The vCPU list needs to be locked to avoid memory corruption with concurrent hot-(un)plugs, and per-vCPU events need to be disabled during vCPU hot-unplug.
Also adds event "guest_cpu_exit" to track vCPU hot-unplugging. Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu> --- Lluís Vilanova (3): trace: Lock vCPU list when initializing dynamic tracing state trace: Fix dynamic event state on vCPU hot-unplug trace: Add event "guest_cpu_exit" qom/cpu.c | 2 ++ trace-events | 6 ++++++ trace/control-target.c | 11 ++++++++++- trace/control.c | 19 +++++++++++++++++++ trace/control.h | 8 ++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi <stefa...@redhat.com>