On 12/06/2017 12:26 PM, Eric Blake wrote:
On 12/06/2017 06:02 AM, Daniel Henrique Barboza wrote:
When issuing the qmp/hmp 'system_wakeup' command, what happens in a
nutshell is:
This patch implements a new QMP command called
'query-wakeup-from-suspend-support' that allows the caller to query
if the guest supports wake up from suspend via system_wakeup. It
goes over the subscribers of the wake up event and, if it's empty,
it assumes that the guest does not support wake up from suspend
(and thus, pm-suspend itself).
This is the expected output of the command when running a x86 guest:
{"execute" : "query-wakeup-from-suspend-support"}
{"return": {"enabled": true}}
Do we really need a new command, or can we add it as an additional field
to an existing command (for example, in MachineInfo under
query-machines, or TargetInfo under query-target)?
A new QMP command was the first idea that crossed my mind but yeah, adding
the info to an existing command is also valid IMO.
Daniel