diff options
| author | Wenchao Xia | 2014-06-18 08:43:36 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2014-06-23 17:01:25 +0200 |
| commit | a4e15de9a2ab65b4ab276cded6f5c3758691bd74 (patch) | |
| tree | 97c993ecc407d49a0d861cd2bd78fefe6989a153 /cpus.c | |
| parent | qapi event: convert RESET (diff) | |
| download | qemu-a4e15de9a2ab65b4ab276cded6f5c3758691bd74.tar.gz qemu-a4e15de9a2ab65b4ab276cded6f5c3758691bd74.tar.xz qemu-a4e15de9a2ab65b4ab276cded6f5c3758691bd74.zip | |
qapi event: convert STOP
Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'cpus.c')
| -rw-r--r-- | cpus.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -26,6 +26,7 @@ #include "config-host.h" #include "monitor/monitor.h" +#include "qapi/qmp/qerror.h" #include "sysemu/sysemu.h" #include "exec/gdbstub.h" #include "sysemu/dma.h" @@ -38,6 +39,7 @@ #include "qemu/main-loop.h" #include "qemu/bitmap.h" #include "qemu/seqlock.h" +#include "qapi-event.h" #ifndef _WIN32 #include "qemu/compatfd.h" @@ -530,7 +532,7 @@ static int do_vm_stop(RunState state) pause_all_vcpus(); runstate_set(state); vm_state_notify(0, state); - monitor_protocol_event(QEVENT_STOP, NULL); + qapi_event_send_stop(&error_abort); } bdrv_drain_all(); |
