Signed-off-by: Wenchao Xia <wenchaoq...@gmail.com> --- vl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c index 236f95e..9f78bd7 100644 --- a/vl.c +++ b/vl.c @@ -117,6 +117,7 @@ int main(int argc, char **argv) #include "ui/qemu-spice.h" #include "qapi/string-input-visitor.h" #include "qom/object_interfaces.h" +#include "qapi-event.h" #define DEFAULT_RAM_SIZE 128 @@ -2007,7 +2008,7 @@ static bool main_loop_should_exit(void) } if (qemu_shutdown_requested()) { qemu_kill_report(); - monitor_protocol_event(QEVENT_SHUTDOWN, NULL); + qapi_event_send_shutdown(NULL); if (no_shutdown) { vm_stop(RUN_STATE_SHUTDOWN); } else { -- 1.7.1