From: Jiri Denemark Date: Thu, 1 Oct 2015 19:39:35 +0000 (+0200) Subject: qemu: Always update migration times on destination X-Git-Tag: v1.2.21-rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d27c66dbaae33d9b463eab8a8a2b0ad8cebff06a;p=thirdparty%2Flibvirt.git qemu: Always update migration times on destination 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 --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 744010814c..c771db688a 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -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);