]> git.ipfire.org Git - thirdparty/qemu.git/commit
qmp: Split ShutdownCause host-qmp into quit and system-reset
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 5 Dec 2018 11:01:31 +0000 (12:01 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 18 Dec 2018 06:55:47 +0000 (07:55 +0100)
commit9254893882139b9a7738214d669958df4dfeee2f
tree84680dcdabd696db6dd8a02d65d6351d0e698c93
parentecd7a0d5bbfbbb6922dfe4049227256d1eafa3b8
qmp: Split ShutdownCause host-qmp into quit and system-reset

It is interesting to know whether the shutdown cause was 'quit' or
'reset', especially when using "--no-reboot". In that case, a management
layer can now determine if the guest wanted a reboot or shutdown, and
can act accordingly.

Changes the output of the reason in the iotests from 'host-qmp' to
'host-qmp-quit'. This does not break compatibility because
the field was introduced in the same version.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Message-Id: <20181205110131.23049-4-d.csapak@proxmox.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
23 files changed:
qapi/run-state.json
qmp.c
tests/qemu-iotests/060.out
tests/qemu-iotests/071.out
tests/qemu-iotests/081.out
tests/qemu-iotests/087.out
tests/qemu-iotests/094.out
tests/qemu-iotests/109.out
tests/qemu-iotests/117.out
tests/qemu-iotests/119.out
tests/qemu-iotests/120.out
tests/qemu-iotests/127.out
tests/qemu-iotests/140.out
tests/qemu-iotests/143.out
tests/qemu-iotests/156.out
tests/qemu-iotests/176.out
tests/qemu-iotests/183.out
tests/qemu-iotests/184.out
tests/qemu-iotests/185.out
tests/qemu-iotests/191.out
tests/qemu-iotests/195.out
tests/qemu-iotests/223.out
tests/qemu-iotests/227.out