diff options
author | Dominik Csapak | 2018-12-05 12:01:30 +0100 |
---|---|---|
committer | Markus Armbruster | 2018-12-18 07:55:47 +0100 |
commit | ecd7a0d5bbfbbb6922dfe4049227256d1eafa3b8 (patch) | |
tree | 034f9355026fa6eeb7400ea6e7af22faaef47d98 /tests/qemu-iotests/183.out | |
parent | qapi: Turn ShutdownCause into QAPI enum (diff) | |
download | qemu-ecd7a0d5bbfbbb6922dfe4049227256d1eafa3b8.tar.gz qemu-ecd7a0d5bbfbbb6922dfe4049227256d1eafa3b8.tar.xz qemu-ecd7a0d5bbfbbb6922dfe4049227256d1eafa3b8.zip |
qmp: Add reason to SHUTDOWN and RESET events
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 updates the iotests to the new expected output that includes
the reason.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Message-Id: <20181205110131.23049-3-d.csapak@proxmox.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/183.out')
-rw-r--r-- | tests/qemu-iotests/183.out | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/183.out b/tests/qemu-iotests/183.out index 103fdc778b..7b8455e269 100644 --- a/tests/qemu-iotests/183.out +++ b/tests/qemu-iotests/183.out @@ -36,8 +36,8 @@ wrote 65536/65536 bytes at offset 1048576 {"return": {}} {"return": {}} -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp"}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp"}} No errors were found on the image. No errors were found on the image. wrote 65536/65536 bytes at offset 1048576 |