summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-11-30 18:21:21 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 10:48:53 -0600
commit25f236433f5c791edce74228201254a1cc84f9a3 (patch)
tree82fa82e8c58c5ec8958fd1f891ec91e3b8a50eaf /migration.c
parentblock migration: Fix outgoing progress output (diff)
downloadqemu-kvm-25f236433f5c791edce74228201254a1cc84f9a3.tar.gz
qemu-kvm-25f236433f5c791edce74228201254a1cc84f9a3.tar.bz2
qemu-kvm-25f236433f5c791edce74228201254a1cc84f9a3.zip
block migration: Report progress also via info migration
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index f4d30222d..d6a3e2615 100644
--- a/migration.c
+++ b/migration.c
@@ -18,6 +18,7 @@
#include "sysemu.h"
#include "block.h"
#include "qemu_socket.h"
+#include "block-migration.h"
//#define DEBUG_MIGRATION
@@ -174,6 +175,14 @@ void do_info_migrate(Monitor *mon)
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);
+ if (blk_mig_active()) {
+ monitor_printf(mon, "transferred disk: %" PRIu64 " kbytes\n",
+ blk_mig_bytes_transferred() >> 10);
+ monitor_printf(mon, "remaining disk: %" PRIu64 " kbytes\n",
+ blk_mig_bytes_remaining() >> 10);
+ monitor_printf(mon, "total disk: %" PRIu64 " kbytes\n",
+ blk_mig_bytes_total() >> 10);
+ }
break;
case MIG_STATE_COMPLETED:
monitor_printf(mon, "completed\n");