Re: [PATCH 1/2] qemu: snapshot: Reject internal active snapshot without memory state

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

 



On 05/29/2014 03:07 AM, Peter Krempa wrote:
> A internal snapshot of a active VM with the memory snapshot disabled
> explicitly would actually still take the memory snapshot. Reject it
> explicitly.
> 
> Before:
>  $ virsh snapshot-create-as --domain VM --diskspec vda,snapshot=internal --memspec snapshot=no
>  Domain snapshot 1401353155 created
> 
> After:
>  $ virsh snapshot-create-as --domain VM --diskspec vda,snapshot=internal --memspec snapshot=no
>  error: Operation not supported: internal snapshot of a running VM must include the memory state

Technically, qemu 1.7 added blockdev-snapshot-internal-sync, so we CAN
take internal disk-only snapshots now.  But as that is more complex to
implement, I agree with this patch as an intermediate fix (and we'll
still have to keep this code path for qemu 1.6 and earlier, based on a
qemu_capabilities.h bit).

> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1083345
> ---
>  src/qemu/qemu_driver.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

ACK, safe for 1.2.5.

-- 
Eric Blake   eblake redhat com    +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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]