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)?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to