diff options
-rw-r--r-- | trace-events | 8 | ||||
-rw-r--r-- | trace/control-target.c | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/trace-events b/trace-events index a45dc562a0..0492c960db 100644 --- a/trace-events +++ b/trace-events @@ -140,6 +140,14 @@ colo_filter_rewriter_conn_offset(uint32_t offset) ": offset=%u\n" ### Guest events, keep at bottom + +## vCPU + +# Hot-plug a new virtual (guest) CPU +# +# Targets: all +vcpu guest_cpu_enter(void) + # @vaddr: Access' virtual address. # @info : Access' information (see below). # diff --git a/trace/control-target.c b/trace/control-target.c index 3b7d99b44c..52fcce5a00 100644 --- a/trace/control-target.c +++ b/trace/control-target.c @@ -9,6 +9,7 @@ #include "qemu/osdep.h" #include "cpu.h" +#include "trace.h" #include "trace/control.h" #include "translate-all.h" @@ -117,4 +118,6 @@ void trace_init_vcpu(CPUState *vcpu) } } } + + trace_guest_cpu_enter(vcpu); } |