Re: [PATCH 3/4] qmp: Allow setting -action parameters on the fly

2020-12-08 Thread Alejandro Jimenez
On 12/8/2020 2:58 PM, Paolo Bonzini wrote: On 08/12/20 20:57, Paolo Bonzini wrote: On 08/12/20 20:14, Alejandro Jimenez wrote:   ## +# @reboot-set-action: +# +# Set reboot action +# +# Since: 6.0 +## +{ 'command': 'reboot-set-action', 'data' : {'action': 'RebootAction'} } + +## +# @shutdow

Re: [PATCH 3/4] qmp: Allow setting -action parameters on the fly

2020-12-08 Thread Paolo Bonzini
On 08/12/20 20:57, Paolo Bonzini wrote: On 08/12/20 20:14, Alejandro Jimenez wrote:   ## +# @reboot-set-action: +# +# Set reboot action +# +# Since: 6.0 +## +{ 'command': 'reboot-set-action', 'data' : {'action': 'RebootAction'} } + +## +# @shutdown-set-action: +# +# Set shutdown action +# +# Sin

Re: [PATCH 3/4] qmp: Allow setting -action parameters on the fly

2020-12-08 Thread Paolo Bonzini
On 08/12/20 20:14, Alejandro Jimenez wrote: ## +# @reboot-set-action: +# +# Set reboot action +# +# Since: 6.0 +## +{ 'command': 'reboot-set-action', 'data' : {'action': 'RebootAction'} } + +## +# @shutdown-set-action: +# +# Set shutdown action +# +# Since: 6.0 +## +{ 'command': 'shutdown-set-a

[PATCH 3/4] qmp: Allow setting -action parameters on the fly

2020-12-08 Thread Alejandro Jimenez
Add QMP commands to allow for the behaviors specified by the -action event=action command line option to be set at runtime, mimicking the watchdog-set-action QMP command. Suggested-by: Paolo Bonzini Signed-off-by: Alejandro Jimenez Reviewed-by: David Edmondson Reviewed-by: Liam Merwick --- qa