mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Add migration accounting for normal and duplicate pages
Signed-off-by: Benoit Hudzia <benoit.hudzia@sap.com> Signed-off-by: Petter Svard <petters@cs.umu.se> Signed-off-by: Aidan Shribman <aidan.shribman@sap.com> Signed-off-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
62d4e3fe31
commit
004d4c10ae
6 changed files with 88 additions and 5 deletions
|
@ -161,6 +161,9 @@ MigrationInfo *qmp_query_migrate(Error **errp)
|
|||
info->ram->total = ram_bytes_total();
|
||||
info->ram->total_time = qemu_get_clock_ms(rt_clock)
|
||||
- s->total_time;
|
||||
info->ram->duplicate = dup_mig_pages_transferred();
|
||||
info->ram->normal = norm_mig_pages_transferred();
|
||||
info->ram->normal_bytes = norm_mig_bytes_transferred();
|
||||
|
||||
if (blk_mig_active()) {
|
||||
info->has_disk = true;
|
||||
|
@ -180,6 +183,9 @@ MigrationInfo *qmp_query_migrate(Error **errp)
|
|||
info->ram->remaining = 0;
|
||||
info->ram->total = ram_bytes_total();
|
||||
info->ram->total_time = s->total_time;
|
||||
info->ram->duplicate = dup_mig_pages_transferred();
|
||||
info->ram->normal = norm_mig_pages_transferred();
|
||||
info->ram->normal_bytes = norm_mig_bytes_transferred();
|
||||
break;
|
||||
case MIG_STATE_ERROR:
|
||||
info->has_status = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue