From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfibM-0000ZZ-F0 for qemu-devel@nongnu.org; Thu, 01 May 2014 00:28:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfibD-0002I7-DI for qemu-devel@nongnu.org; Thu, 01 May 2014 00:28:04 -0400 Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]:45033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfibD-0002I3-7Q for qemu-devel@nongnu.org; Thu, 01 May 2014 00:27:55 -0400 Received: by mail-ig0-f181.google.com with SMTP id h18so89549igc.8 for ; Wed, 30 Apr 2014 21:27:54 -0700 (PDT) From: Wenchao Xia Date: Wed, 30 Apr 2014 21:26:44 -0700 Message-Id: <1398918422-3019-11-git-send-email-wenchaoqemu@gmail.com> In-Reply-To: <1398918422-3019-1-git-send-email-wenchaoqemu@gmail.com> References: <1398918422-3019-1-git-send-email-wenchaoqemu@gmail.com> Subject: [Qemu-devel] [PATCH V5 10/28] qapi event: convert STOP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com, armbru@redhat.com, Wenchao Xia , lcapitulino@redhat.com Signed-off-by: Wenchao Xia --- cpus.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index 7bbe153..95a0228 100644 --- a/cpus.c +++ b/cpus.c @@ -25,7 +25,7 @@ /* Needed early for CONFIG_BSD etc. */ #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 +38,7 @@ #include "qemu/main-loop.h" #include "qemu/bitmap.h" #include "qemu/seqlock.h" +#include "qapi-event.h" #ifndef _WIN32 #include "qemu/compatfd.h" @@ -531,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(NULL); } bdrv_drain_all(); -- 1.7.1