From: Peter Krempa Date: Tue, 24 Sep 2019 12:42:27 +0000 (+0200) Subject: qemu: checkpoint: Don't forbid checkpoint when VM is marked for autodestroy X-Git-Tag: v5.8.0-rc1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdff7294d14d4e4b8402add3ba81c9f2e7bfca3a;p=thirdparty%2Flibvirt.git qemu: checkpoint: Don't forbid checkpoint when VM is marked for autodestroy The check was copied from the snapshot code and makes even less sense here. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 823aa558ac..db4b39dc9e 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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"));