migration: introduce downtime_start
commit64909f974012038266a4785a33935742f1e96b84
authorPeter Xu <peterx@redhat.com>
Wed, 3 Jan 2018 12:20:10 +0000 (3 20:20 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:09 +0000 (15 12:48 +0100)
tree969ef901c9847cf0f86af94a5872aedf6fa4df9c
parent7287cbd46e2d6fb582ca78c3cb49b1e53d91a761
migration: introduce downtime_start

Introduce MigrationState.downtime_start to replace the local variable
"start_time" in migration_thread to avoid passing things around.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
migration/migration.h