aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-05-21 17:38:01 -0400
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-22 10:50:29 -0500
commit9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6 (patch)
tree87790daf978b77e5f000e43d34d564a74df26cf9 /migration.c
parented8b330bccabb03c930ed1e4d72e341130f9b406 (diff)
downloadqemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.zip
qemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.tar.gz
qemu-9f9e28cda74bc8cddd8ac4c0a9c007b31d42c6f6.tar.bz2
augment info migrate with page status
This patch augments info migrate output with status about: * ram bytes remaining * ram bytes transferred * ram bytes total This should be enough for management tools to realize whether or not there is progress in migration. We can add more information later on, if the need arrives [v2: fixes bytes_transferred type] Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index ca397fa..cccc2d1 100644
--- a/migration.c
+++ b/migration.c
@@ -109,6 +109,9 @@ void do_info_migrate(Monitor *mon)
switch (s->get_status(s)) {
case MIG_STATE_ACTIVE:
monitor_printf(mon, "active\n");
+ monitor_printf(mon, "transferred ram: %" PRIu64 " kbytes\n", ram_bytes_transferred() >> 10);
+ monitor_printf(mon, "remaining ram: %" PRIu64 " kbytes\n", ram_bytes_remaining() >> 10);
+ monitor_printf(mon, "total ram: %" PRIu64 " kbytes\n", ram_bytes_total() >> 10);
break;
case MIG_STATE_COMPLETED:
monitor_printf(mon, "completed\n");