aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.h
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-01-03 20:20:08 +0800
committerJuan Quintela <quintela@redhat.com>2018-01-15 12:48:08 +0100
commit4af246a34e3155365e6be9dda201f3467d0498d9 (patch)
treeef2202e75e0ac913eda9f97bab6db59b429b1040 /migration/migration.h
parentdeb74fb6701755a4f864977608ea3919e4970fae (diff)
downloadqemu-4af246a34e3155365e6be9dda201f3467d0498d9.zip
qemu-4af246a34e3155365e6be9dda201f3467d0498d9.tar.gz
qemu-4af246a34e3155365e6be9dda201f3467d0498d9.tar.bz2
migration: split use of MigrationState.total_time
It was used either to: 1. store initial timestamp of migration start, and 2. store total time used by last migration Let's provide two parameters for each of them. Mix use of the two is slightly misleading. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r--migration/migration.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h
index d84bc55..d1132b1 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -115,6 +115,9 @@ struct MigrationState
} rp_state;
double mbps;
+ /* Timestamp when recent migration starts (ms) */
+ int64_t start_time;
+ /* Total time used by latest migration (ms) */
int64_t total_time;
int64_t downtime;
int64_t expected_downtime;