[Qemu-devel] [PATCH 0/3] qapi: return ShutdownCause for events

Dominik Csapak posted 3 patches 5 years, 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20181031115242.6558-1-d.csapak@proxmox.com
Test docker-clang@ubuntu passed
Test checkpatch passed
Test asan passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
There is a newer version of this series
include/sysemu/sysemu.h    | 20 --------------------
qapi/run-state.json        | 39 +++++++++++++++++++++++++++++++++++++--
qmp.c                      |  4 ++--
tests/qemu-iotests/060.out |  4 ++--
tests/qemu-iotests/071.out |  4 ++--
tests/qemu-iotests/081.out |  2 +-
tests/qemu-iotests/087.out | 12 ++++++------
tests/qemu-iotests/094.out |  2 +-
tests/qemu-iotests/109.out | 44 ++++++++++++++++++++++----------------------
tests/qemu-iotests/117.out |  2 +-
tests/qemu-iotests/119.out |  2 +-
tests/qemu-iotests/120.out |  2 +-
tests/qemu-iotests/127.out |  2 +-
tests/qemu-iotests/140.out |  2 +-
tests/qemu-iotests/143.out |  2 +-
tests/qemu-iotests/156.out |  2 +-
tests/qemu-iotests/176.out | 16 ++++++++--------
tests/qemu-iotests/183.out |  4 ++--
tests/qemu-iotests/184.out | 12 ++++++++----
tests/qemu-iotests/185.out | 10 +++++-----
tests/qemu-iotests/191.out |  6 ++++--
tests/qemu-iotests/195.out |  6 ++++--
tests/qemu-iotests/223.out |  2 +-
tests/qemu-iotests/227.out | 12 ++++++++----
vl.c                       |  4 ++--
25 files changed, 122 insertions(+), 95 deletions(-)
[Qemu-devel] [PATCH 0/3] qapi: return ShutdownCause for events
Posted by Dominik Csapak 5 years, 5 months ago
This series improves the QMP SHUTDOWN and RESET events by adding
the ShutdownCause as additional parameter and splitting
the HOST_QMP reason into HOST_QMP_QUIT and HOST_QMP_SYSTEM_RESET
to be able to detect the difference between them when using '--no-reboot'

this is an alternative to my previous patches[1][2] which
added an exit-script/added a 'reset' argument to the events

 1: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg00697.html
 2: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg01271.html

Dominik Csapak (3):
  qapi: move ShutdownCause to qapi/run-state.json
  qapi: split host-qmp into quit and system-reset
  qapi: add reason to SHUTDOWN and RESET events

 include/sysemu/sysemu.h    | 20 --------------------
 qapi/run-state.json        | 39 +++++++++++++++++++++++++++++++++++++--
 qmp.c                      |  4 ++--
 tests/qemu-iotests/060.out |  4 ++--
 tests/qemu-iotests/071.out |  4 ++--
 tests/qemu-iotests/081.out |  2 +-
 tests/qemu-iotests/087.out | 12 ++++++------
 tests/qemu-iotests/094.out |  2 +-
 tests/qemu-iotests/109.out | 44 ++++++++++++++++++++++----------------------
 tests/qemu-iotests/117.out |  2 +-
 tests/qemu-iotests/119.out |  2 +-
 tests/qemu-iotests/120.out |  2 +-
 tests/qemu-iotests/127.out |  2 +-
 tests/qemu-iotests/140.out |  2 +-
 tests/qemu-iotests/143.out |  2 +-
 tests/qemu-iotests/156.out |  2 +-
 tests/qemu-iotests/176.out | 16 ++++++++--------
 tests/qemu-iotests/183.out |  4 ++--
 tests/qemu-iotests/184.out | 12 ++++++++----
 tests/qemu-iotests/185.out | 10 +++++-----
 tests/qemu-iotests/191.out |  6 ++++--
 tests/qemu-iotests/195.out |  6 ++++--
 tests/qemu-iotests/223.out |  2 +-
 tests/qemu-iotests/227.out | 12 ++++++++----
 vl.c                       |  4 ++--
 25 files changed, 122 insertions(+), 95 deletions(-)

-- 
2.11.0



Re: [Qemu-devel] [PATCH 0/3] qapi: return ShutdownCause for events
Posted by Dominik Csapak 5 years, 5 months ago
Hi,

i guess many of you are occupied with 3.1,
but had anyone time to look at this?

kind regards

On 10/31/18 12:52 PM, Dominik Csapak wrote:
> This series improves the QMP SHUTDOWN and RESET events by adding
> the ShutdownCause as additional parameter and splitting
> the HOST_QMP reason into HOST_QMP_QUIT and HOST_QMP_SYSTEM_RESET
> to be able to detect the difference between them when using '--no-reboot'
> 
> this is an alternative to my previous patches[1][2] which
> added an exit-script/added a 'reset' argument to the events
> 
>   1: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg00697.html
>   2: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg01271.html
> 
> Dominik Csapak (3):
>    qapi: move ShutdownCause to qapi/run-state.json
>    qapi: split host-qmp into quit and system-reset
>    qapi: add reason to SHUTDOWN and RESET events
> 
>   include/sysemu/sysemu.h    | 20 --------------------
>   qapi/run-state.json        | 39 +++++++++++++++++++++++++++++++++++++--
>   qmp.c                      |  4 ++--
>   tests/qemu-iotests/060.out |  4 ++--
>   tests/qemu-iotests/071.out |  4 ++--
>   tests/qemu-iotests/081.out |  2 +-
>   tests/qemu-iotests/087.out | 12 ++++++------
>   tests/qemu-iotests/094.out |  2 +-
>   tests/qemu-iotests/109.out | 44 ++++++++++++++++++++++----------------------
>   tests/qemu-iotests/117.out |  2 +-
>   tests/qemu-iotests/119.out |  2 +-
>   tests/qemu-iotests/120.out |  2 +-
>   tests/qemu-iotests/127.out |  2 +-
>   tests/qemu-iotests/140.out |  2 +-
>   tests/qemu-iotests/143.out |  2 +-
>   tests/qemu-iotests/156.out |  2 +-
>   tests/qemu-iotests/176.out | 16 ++++++++--------
>   tests/qemu-iotests/183.out |  4 ++--
>   tests/qemu-iotests/184.out | 12 ++++++++----
>   tests/qemu-iotests/185.out | 10 +++++-----
>   tests/qemu-iotests/191.out |  6 ++++--
>   tests/qemu-iotests/195.out |  6 ++++--
>   tests/qemu-iotests/223.out |  2 +-
>   tests/qemu-iotests/227.out | 12 ++++++++----
>   vl.c                       |  4 ++--
>   25 files changed, 122 insertions(+), 95 deletions(-)
>