diff options
author | Emilio G. Cota <cota@braap.org> | 2018-10-21 13:30:35 -0400 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-10-28 15:12:38 +0000 |
commit | 30865f316856cc346f4af7ec28586c4a636b0109 (patch) | |
tree | 238e7c54ec573e96fe0be6908c4d4f3aecfea9ea /hw | |
parent | c36f7a642cd81cff566ffe23e0a863ac4d7f1f91 (diff) | |
download | qemu-30865f316856cc346f4af7ec28586c4a636b0109.zip qemu-30865f316856cc346f4af7ec28586c4a636b0109.tar.gz qemu-30865f316856cc346f4af7ec28586c4a636b0109.tar.bz2 |
cpu: hook plugin vcpu events
Signed-off-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/core/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/core/cpu.c b/hw/core/cpu.c index 73b1ee3..db1a03c 100644 --- a/hw/core/cpu.c +++ b/hw/core/cpu.c @@ -32,6 +32,7 @@ #include "hw/boards.h" #include "hw/qdev-properties.h" #include "trace-root.h" +#include "qemu/plugin.h" CPUInterruptHandler cpu_interrupt_handler; @@ -352,6 +353,7 @@ static void cpu_common_unrealizefn(DeviceState *dev, Error **errp) CPUState *cpu = CPU(dev); /* NOTE: latest generic point before the cpu is fully unrealized */ trace_fini_vcpu(cpu); + qemu_plugin_vcpu_exit_hook(cpu); cpu_exec_unrealizefn(cpu); } |