[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 14/40] qapi event: convert POWERDOWN
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 14/40] qapi event: convert POWERDOWN |
Date: |
Thu, 19 Jun 2014 15:39:26 -0400 |
From: Wenchao Xia <address@hidden>
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 <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
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
- [Qemu-devel] [PULL 02/40] qapi: add const prefix to 'char *' insider c_type(), (continued)
- [Qemu-devel] [PULL 02/40] qapi: add const prefix to 'char *' insider c_type(), Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 03/40] qapi: Suppress unwanted space between type and identifier, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 06/40] qapi: Add includes from qapi/ as dependencies, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 08/40] qapi script: add event support, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 05/40] os-posix: include sys/time.h, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 09/40] test: add test cases for qapi event, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 04/40] json-lexer: fix escaped backslash in single-quoted string, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 07/40] qapi: add event helper functions, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 11/40] monitor: add an implemention of qapi event emit method, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 10/40] qapi: adjust existing defines, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 14/40] qapi event: convert POWERDOWN,
Luiz Capitulino <=
- [Qemu-devel] [PULL 15/40] qapi event: convert RESET, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 17/40] qapi event: convert RESUME, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 13/40] qapi event: convert SHUTDOWN, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 19/40] qapi event: convert SUSPEND_DISK, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 20/40] qapi event: convert WAKEUP, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 18/40] qapi event: convert SUSPEND, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 21/40] qapi event: convert RTC_CHANGE, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 16/40] qapi event: convert STOP, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 23/40] qapi event: convert DEVICE_DELETED, Luiz Capitulino, 2014/06/19
- [Qemu-devel] [PULL 22/40] qapi event: convert WATCHDOG, Luiz Capitulino, 2014/06/19