]> git.proxmox.com Git - mirror_qemu.git/commit - MAINTAINERS
qmp: generalize watchdog-set-action to -no-reboot/-no-shutdown
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Fri, 11 Dec 2020 16:52:43 +0000 (11:52 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:57 +0000 (12:51 -0500)
commite6dba0481363ad343c5f984dd4de3dd06d79ee68
tree8c970cec81095fd7cb39f9b8b011f335f4bf5ec2
parentebe3444468a4913e0208db1f74ea9336c7580202
qmp: generalize watchdog-set-action to -no-reboot/-no-shutdown

Add a QMP command to allow for the behaviors specified by the
-no-reboot and -no-shutdown command line option to be set at runtime.
The new command is named set-action and takes optional arguments, named
after an event, that provide a corresponding action to take.

Example:

-> { "execute": "set-action",
     "arguments": {
"reboot": "none",
"shutdown": "poweroff",
"watchdog": "debug" } }
<- { "return": {} }

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Message-Id: <1607705564-26264-4-git-send-email-alejandro.j.jimenez@oracle.com>
[Split the series differently, with -action based on the QMP command. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
MAINTAINERS
include/sysemu/runstate-action.h [new file with mode: 0644]
include/sysemu/sysemu.h
monitor/qmp-cmds.c
qapi/run-state.json
softmmu/globals.c
softmmu/meson.build
softmmu/runstate-action.c [new file with mode: 0644]
softmmu/runstate.c
softmmu/vl.c
ui/sdl2.c