qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Alejandro Jimenez
Subject: Re: [PATCH 3/4] qmp: Allow setting -action parameters on the fly
Date: Tue, 8 Dec 2020 15:59:54 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1



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'} }
+
+##
+# @shutdown-set-action:
+#
+# Set shutdown action
+#
+# Since: 6.0
+##
+{ 'command': 'shutdown-set-action', 'data' : {'action': 'ShutdownAction'} }
+
+##
+# @panic-set-action:
+#
+# Set panic action
+#
+# Since: 6.0
+##
+{ 'command': 'panic-set-action', 'data' : {'action': 'PanicAction'} }
+
+##

What about a single action-set command with arguments reboot, shutdown and panic?

(and watchdog, of course)?
Just to make sure I understand the request: an action-set QMP command would need to take two arguments: an event (reboot|shutdown|panic|watchdog), and a valid action for that event type, akin to what set_runstate_action() does. I'll work on it.

Alejandro

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]