From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsWic-0007oZ-3N for qemu-devel@nongnu.org; Thu, 05 Jun 2014 08:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsWiS-00019g-Uh for qemu-devel@nongnu.org; Thu, 05 Jun 2014 08:24:30 -0400 Received: from mail-pb0-x231.google.com ([2607:f8b0:400e:c01::231]:53098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsWiS-00019S-Og for qemu-devel@nongnu.org; Thu, 05 Jun 2014 08:24:20 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so1047183pbb.36 for ; Thu, 05 Jun 2014 05:24:19 -0700 (PDT) From: Wenchao Xia Date: Thu, 5 Jun 2014 05:22:04 -0700 Message-Id: <1401970944-18735-10-git-send-email-wenchaoqemu@gmail.com> In-Reply-To: <1401970944-18735-1-git-send-email-wenchaoqemu@gmail.com> References: <1401970944-18735-1-git-send-email-wenchaoqemu@gmail.com> Subject: [Qemu-devel] [PATCH V6 09/29] qapi event: convert POWERDOWN 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 There is no existing comments for POWERDOWN in doc/qmp/qmp-events.txt, so no change on it like other conversion patch. Signed-off-by: Wenchao Xia --- qapi-event.json | 10 ++++++++++ vl.c | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/qapi-event.json b/qapi-event.json index b2a943f..fbdbc7c 100644 --- a/qapi-event.json +++ b/qapi-event.json @@ -10,3 +10,13 @@ # Since: 2.1 ## { 'event': 'SHUTDOWN' } + +## +# @POWERDOWN +# +# Emitted when the virtual machine is powered down through the power control +# system, such as via ACPI. +# +# Since: 2.1 +## +{ 'event': 'POWERDOWN' } diff --git a/vl.c b/vl.c index 273d237..69ad0e9 100644 --- a/vl.c +++ b/vl.c @@ -1991,7 +1991,7 @@ void qemu_system_shutdown_request(void) static void qemu_system_powerdown(void) { - monitor_protocol_event(QEVENT_POWERDOWN, NULL); + qapi_event_send_powerdown(NULL); notifier_list_notify(&powerdown_notifiers, NULL); } -- 1.7.1