]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: checkpoint: Don't forbid checkpoint when VM is marked for autodestroy
authorPeter Krempa <pkrempa@redhat.com>
Tue, 24 Sep 2019 12:42:27 +0000 (14:42 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Sep 2019 06:38:52 +0000 (08:38 +0200)
The check was copied from the snapshot code and makes even less sense
here.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c

index 823aa558aca1e80086c212d409432b780b06ba5f..db4b39dc9e9bfc8cf56c7d0e183c0c5bf3781245 100644 (file)
@@ -17314,12 +17314,6 @@ qemuDomainCheckpointCreateXML(virDomainPtr domain,
     if (!(caps = virQEMUDriverGetCapabilities(driver, false)))
         goto cleanup;
 
-    if (qemuProcessAutoDestroyActive(driver, vm)) {
-        virReportError(VIR_ERR_OPERATION_INVALID,
-                       "%s", _("domain is marked for auto destroy"));
-        goto cleanup;
-    }
-
     if (!virDomainObjIsActive(vm)) {
         virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
                        _("cannot create checkpoint for inactive domain"));