aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorMichael R. Hines <mrhines@us.ibm.com>2013-07-22 10:01:58 -0400
committerJuan Quintela <quintela@redhat.com>2013-07-23 13:06:37 +0200
commited4fbd10823a7b0dbded6b481a68973e47f7e14d (patch)
tree188b76dd6afb611590a5b05e33253b1163a4499e /hmp.c
parent29ae8a4133082e16970c9d4be09f4b6a15034617 (diff)
downloadqemu-ed4fbd10823a7b0dbded6b481a68973e47f7e14d.zip
qemu-ed4fbd10823a7b0dbded6b481a68973e47f7e14d.tar.gz
qemu-ed4fbd10823a7b0dbded6b481a68973e47f7e14d.tar.bz2
rdma: account for the time spent in MIG_STATE_SETUP through QMP
Using the previous patches, we're now able to timestamp the SETUP state. Once we have this time, let the user know about it in the schema. Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael R. Hines <mrhines@us.ibm.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index dc4d8d4..c45514b 100644
--- a/hmp.c
+++ b/hmp.c
@@ -164,6 +164,10 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
monitor_printf(mon, "downtime: %" PRIu64 " milliseconds\n",
info->downtime);
}
+ if (info->has_setup_time) {
+ monitor_printf(mon, "setup: %" PRIu64 " milliseconds\n",
+ info->setup_time);
+ }
}
if (info->has_ram) {