Adds events to track vCPU hot-(un)plugging and reset.

As a bonus, first patch fixes per-vCPU dynamic event state initialization,
making the current late initialization code obsolete.

NOTE: This series is missing CPU hot-unplug, since I could not find a generic
      point to hook the event.

Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu>
---

Changes in v3
=============

* Remove code for trace_fini_vcpu(), since there is no full support for
  hot-unplugging.


Changes in v2
=============

* Properly support vCPU hot-plugging to "inherit" dynamic event states.
* Rename event "guest_cpu_init" to "guest_cpu_enter".


Lluís Vilanova (3):
      trace: Properly initialize dynamic event states in hot-plugged vCPUs
      trace: Add event "guest_cpu_enter"
      trace: Add event "guest_cpu_reset"


 bsd-user/main.c        |    1 -
 linux-user/main.c      |    1 -
 qom/cpu.c              |    6 ++++++
 stubs/trace-control.c  |    6 ++++++
 trace-events           |   13 +++++++++++++
 trace/control-target.c |   40 ++++++++++++++++++++++++++++++++++++++++
 trace/control.c        |   19 -------------------
 trace/control.h        |   19 ++++++++-----------
 vl.c                   |    1 -
 9 files changed, 73 insertions(+), 33 deletions(-)


To: qemu-devel@nongnu.org
Cc: Stefan Hajnoczi <stefa...@redhat.com>

Reply via email to