On 12/3/18 3:26 AM, Dominik Csapak wrote:
This makes it possible to determine what the exact reason was for
a RESET or a SHUTDOWN. A management layer might need the specific reason
of those events to determine which cleanups or other actions it needs
to do.
This patch also fixes the iotests to include the reason in the output.
Signed-off-by: Dominik Csapak <address@hidden>
---
qapi/run-state.json | 8 ++++++--
+++ b/qapi/run-state.json
@@ -141,6 +141,8 @@
# a guest-initiated ACPI shutdown request or other hardware-specific
action)
# rather than a host request (such as sending qemu a SIGINT). (since
2.10)
#
+# @reason: The @ShutdownCause which resulted in the SHUTDOWN.
Missing a '(since 4.0)' clause.