From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wx9bu-0000rE-4o for qemu-devel@nongnu.org; Wed, 18 Jun 2014 02:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wx9bk-00032S-Gb for qemu-devel@nongnu.org; Wed, 18 Jun 2014 02:44:42 -0400 Received: from mail-wg0-x232.google.com ([2a00:1450:400c:c00::232]:52900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wx9bk-00031x-AE for qemu-devel@nongnu.org; Wed, 18 Jun 2014 02:44:32 -0400 Received: by mail-wg0-f50.google.com with SMTP id x13so337816wgg.9 for ; Tue, 17 Jun 2014 23:44:31 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 18 Jun 2014 08:43:34 +0200 Message-Id: <1403073840-32603-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1403073840-32603-1-git-send-email-pbonzini@redhat.com> References: <1403073840-32603-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 2.1 10/36] qapi event: convert POWERDOWN List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: wenchaoqemu@gmail.com, lcapitulino@redhat.com From: Wenchao Xia 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 Signed-off-by: Paolo Bonzini --- qapi-event.json | 10 ++++++++++ vl.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/qapi-event.json b/qapi-event.json index 7a6e6bf..ca08289 100644 --- a/qapi-event.json +++ b/qapi-event.json @@ -10,3 +10,13 @@ # Since: 0.12.0 ## { 'event': 'SHUTDOWN' } + +## +# @POWERDOWN +# +# Emitted when the virtual machine is powered down through the power control +# system, such as via ACPI. +# +# Since: 0.12.0 +## +{ 'event': 'POWERDOWN' } diff --git a/vl.c b/vl.c index 4dc21d3..9ade3cb 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(&error_abort); notifier_list_notify(&powerdown_notifiers, NULL); } -- 1.9.3