Alejandro Jimenez e6dba04813 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>
2020-12-15 12:51:57 -05:00
..
2020-09-30 19:09:19 +02:00
2020-12-15 12:51:52 -05:00
2019-03-11 08:39:02 +01:00
2019-09-17 13:42:02 +02:00
2019-09-17 13:42:02 +02:00
2020-10-15 16:35:06 +01:00
2019-08-16 13:31:52 +02:00
2020-12-10 12:15:18 -05:00
2020-08-21 06:30:21 -04:00
2017-07-27 14:23:09 +02:00
2019-08-16 13:31:52 +02:00
2016-02-04 17:01:04 +00:00
2019-02-05 16:50:18 +01:00
2020-10-14 06:05:56 +02:00
2020-12-11 08:06:40 +01:00