aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-13 12:31:25 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:58 +0200
commit8d017193e2b66a65adf53e46a6372e55470fe7fd (patch)
tree11df151e4211ec9a8b7a863c66737e713b230e38 /migration.c
parentc6bf8e0e0cf04b40a8a22426e00ebbd727331d8b (diff)
downloadqemu-8d017193e2b66a65adf53e46a6372e55470fe7fd.zip
qemu-8d017193e2b66a65adf53e46a6372e55470fe7fd.tar.gz
qemu-8d017193e2b66a65adf53e46a6372e55470fe7fd.tar.bz2
migration: Add dirty_pages_rate to query migrate output
It indicates how many pages were dirtied during the last second. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index 8d3e018..330c16a 100644
--- a/migration.c
+++ b/migration.c
@@ -180,6 +180,8 @@ MigrationInfo *qmp_query_migrate(Error **errp)
info->ram->duplicate = dup_mig_pages_transferred();
info->ram->normal = norm_mig_pages_transferred();
info->ram->normal_bytes = norm_mig_bytes_transferred();
+ info->ram->dirty_pages_rate = s->dirty_pages_rate;
+
if (blk_mig_active()) {
info->has_disk = true;