From 64909f974012038266a4785a33935742f1e96b84 Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Wed, 3 Jan 2018 20:20:10 +0800 Subject: 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 Signed-off-by: Peter Xu Signed-off-by: Juan Quintela --- migration/migration.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'migration/migration.h') diff --git a/migration/migration.h b/migration/migration.h index 4cae263992..0aad12f9a1 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -119,6 +119,8 @@ struct MigrationState int64_t start_time; /* Total time used by latest migration (ms) */ int64_t total_time; + /* Timestamp when VM is down (ms) to migrate the last stuff */ + int64_t downtime_start; int64_t downtime; int64_t expected_downtime; bool enabled_capabilities[MIGRATION_CAPABILITY__MAX]; -- cgit v1.2.3