]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Always update migration times on destination
authorJiri Denemark <jdenemar@redhat.com>
Thu, 1 Oct 2015 19:39:35 +0000 (21:39 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 6 Oct 2015 14:15:21 +0000 (16:15 +0200)
Even if we are migrating a domain with VIR_MIGRATE_PAUSED flag set, we
should still update the total time of the migration. Updating downtime
doesn't hurt either, even though we don't actually start guest CPUs.

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

index 744010814c7b4e0b52693b38b64c8738fd93cf61..c771db688a5ab40a0f7712f628258d11e43af98a 100644 (file)
@@ -5743,10 +5743,11 @@ qemuMigrationFinish(virQEMUDriverPtr driver,
                 if (v3proto)
                     goto endjob;
             }
-            if (priv->job.completed) {
-                qemuDomainJobInfoUpdateTime(priv->job.completed);
-                qemuDomainJobInfoUpdateDowntime(priv->job.completed);
-            }
+        }
+
+        if (priv->job.completed) {
+            qemuDomainJobInfoUpdateTime(priv->job.completed);
+            qemuDomainJobInfoUpdateDowntime(priv->job.completed);
         }
 
         dom = virGetDomain(dconn, vm->def->name, vm->def->uuid);