]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Allow setting migration max downtime any time
authorChris St. Pierre <chris.a.st.pierre@gmail.com>
Mon, 29 Sep 2014 13:45:28 +0000 (13:45 +0000)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 30 Sep 2014 11:35:20 +0000 (13:35 +0200)
This removes the artificial and unnecessary restriction that
virDomainSetMaxDowntime() only be called while a migration is in
progress.

https://bugzilla.redhat.com/show_bug.cgi?id=1146618

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c

index 63fc83f70856e7f410c1018172e1dbedc808a29b..e873d4570824ac4c5a27e9c3eee5a84151108b2d 100644 (file)
@@ -12023,12 +12023,6 @@ qemuDomainMigrateSetMaxDowntime(virDomainPtr dom,
 
     priv = vm->privateData;
 
-    if (priv->job.asyncJob != QEMU_ASYNC_JOB_MIGRATION_OUT) {
-        virReportError(VIR_ERR_OPERATION_INVALID,
-                       "%s", _("domain is not being migrated"));
-        goto endjob;
-    }
-
     VIR_DEBUG("Setting migration downtime to %llums", downtime);
     qemuDomainObjEnterMonitor(driver, vm);
     ret = qemuMonitorSetMigrationDowntime(priv->mon, downtime);