On 02/10/2012 01:33 PM, Eric Blake wrote: > On the other hand, it probably also points out that we are missing a > counterpart: > > virDomainGetPowerState(domain, flags) > > after all, with NodeSuspendForDuration, we always know what state we are > in (the host is active if you can query, and all other states the host > is non-responsive); but with guests, the hypervisor can indeed be > queried to see whether the guest is currently active or in S3. Actually, the existing virDomainGetState() may be good enough for this task of querying whether the guest is in S3; but it may require enhancing our collection of virDomain*Reason to have more states and transition reasons. -- Eric Blake eblake@xxxxxxxxxx +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list