diff options
author | Orit Wasserman <owasserm@redhat.com> | 2012-08-06 21:42:56 +0300 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-08-08 13:51:12 +0200 |
commit | 004d4c10aee9d64869ca3a8ef21f56c0045bf31b (patch) | |
tree | 343419704493551998e21f5a54142cea310f297b /migration.c | |
parent | 62d4e3fe31844ee76bf2314bf1c22d25bad37589 (diff) | |
download | qemu-004d4c10aee9d64869ca3a8ef21f56c0045bf31b.tar.gz qemu-004d4c10aee9d64869ca3a8ef21f56c0045bf31b.tar.bz2 qemu-004d4c10aee9d64869ca3a8ef21f56c0045bf31b.zip |
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>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/migration.c b/migration.c index a6c007215a..ab5e09d2cb 100644 --- a/migration.c +++ b/migration.c @@ -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; |