mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
ed8b330bcc
commit
9f9e28cda7
3 changed files with 27 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue