migration: Set downtime_start even for postcopy
authorPeter Xu <peterx@redhat.com>
Mon, 30 Oct 2023 16:33:42 +0000 (12:33 -0400)
committerJuan Quintela <quintela@redhat.com>
Wed, 1 Nov 2023 15:13:58 +0000 (16:13 +0100)
commit62f5da7dd10a594fb30cebb5569dc738456f7131
treea855f570ec8cf9bfe2cead8ba9eea211bce13583
parentc64a59552e44fbae22a565eec3632df59e79d57c
migration: Set downtime_start even for postcopy

Postcopy calculates its downtime separately.  It always sets
MigrationState.downtime properly, but not MigrationState.downtime_start.

Make postcopy do the same as other modes on properly recording the
timestamp when the VM is going to be stopped.  Drop the temporary variable
in postcopy_start() along the way.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231030163346.765724-2-peterx@redhat.com>
migration/migration.c