summaryrefslogtreecommitdiff
path: root/hmp.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 /hmp.c
parentc6bf8e0e0cf04b40a8a22426e00ebbd727331d8b (diff)
downloadqemu-8d017193e2b66a65adf53e46a6372e55470fe7fd.tar.gz
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 'hmp.c')
-rw-r--r--hmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 96e21742ec..2b979826ee 100644
--- a/hmp.c
+++ b/hmp.c
@@ -175,6 +175,10 @@ void hmp_info_migrate(Monitor *mon)
info->ram->normal);
monitor_printf(mon, "normal bytes: %" PRIu64 " kbytes\n",
info->ram->normal_bytes >> 10);
+ if (info->ram->dirty_pages_rate) {
+ monitor_printf(mon, "dirty pages rate: %" PRIu64 " pages\n",
+ info->ram->dirty_pages_rate);
+ }
}
if (info->has_disk) {