[libvirt] [PATCH 2/7] lib: Add reason for a domain reaching the PMSUSPENDED state

Eric Blake eblake at redhat.com
Fri Jul 18 22:29:49 UTC 2014

On 07/18/2014 10:11 AM, Peter Krempa wrote:
> When libvirt reverts a snapshot in the PMSUSPENDED state we need to
> record how it entered this state. Add the "from snapshot" reason.
> ---
>  include/libvirt/libvirt.h.in | 3 +++
>  src/conf/domain_conf.c       | 3 ++-
>  tools/virsh-domain-monitor.c | 3 ++-
>  3 files changed, 7 insertions(+), 2 deletions(-)

Again, I'm not sure this is possible with current qemu.  Rather, what
really needs to happen is whatever we do when migrating an S3 guest or
doing a 'virsh restore file' on a file created by 'virsh save' on an S3
guest.  Basically, waking the file is forced to have the guest back in
pm wakeup state (or at best paused).

Yes, if future qemu is ever patched to support S3 migration, then we can
revisit this.  But that won't be qemu 2.1, so I don't think we need this

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140718/c005f1f5/attachment-0001.sig>

More information about the libvir-list mailing list