[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/7] ram: We only print throttling information someti
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 2/7] ram: We only print throttling information sometimes |
Date: |
Wed, 7 Jun 2017 11:59:21 +0200 |
Change it to be consistent with everything else.
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
migration/migration.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/migration/migration.c b/migration/migration.c
index b1e68c0..9c5ff57 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -616,6 +616,11 @@ static void populate_ram_info(MigrationInfo *info,
MigrationState *s)
info->xbzrle_cache->overflow = xbzrle_mig_pages_overflow();
}
+ if (cpu_throttle_active()) {
+ info->has_cpu_throttle_percentage = true;
+ info->cpu_throttle_percentage = cpu_throttle_get_percentage();
+ }
+
if (s->state != MIGRATION_STATUS_COMPLETED) {
info->ram->remaining = ram_bytes_remaining();
info->ram->dirty_pages_rate = ram_dirty_pages_rate();
@@ -656,11 +661,6 @@ MigrationInfo *qmp_query_migrate(Error **errp)
info->disk->total = blk_mig_bytes_total();
}
- if (cpu_throttle_active()) {
- info->has_cpu_throttle_percentage = true;
- info->cpu_throttle_percentage = cpu_throttle_get_percentage();
- }
-
break;
case MIGRATION_STATUS_POSTCOPY_ACTIVE:
/* Mostly the same as active; TODO add some postcopy stats */
--
2.9.4
- [Qemu-devel] [PULL 0/7] Migration PULL requset, Juan Quintela, 2017/06/07
- [Qemu-devel] [PULL 1/7] ram: Unfold get_xbzrle_cache_stats() into populate_ram_info(), Juan Quintela, 2017/06/07
- [Qemu-devel] [PULL 2/7] ram: We only print throttling information sometimes,
Juan Quintela <=
- [Qemu-devel] [PULL 3/7] ram: Call migration_page_queue_free() at ram_migration_cleanup(), Juan Quintela, 2017/06/07
- [Qemu-devel] [PULL 4/7] ram: Move ZERO_TARGET_PAGE inside XBZRLE, Juan Quintela, 2017/06/07
- [Qemu-devel] [PULL 6/7] ram: Make RAMState dynamic, Juan Quintela, 2017/06/07
- [Qemu-devel] [PULL 5/7] ram: Use MigrationStats for statistics, Juan Quintela, 2017/06/07
- [Qemu-devel] [PULL 7/7] qemu/migration: fix the double free problem on from_src_file, Juan Quintela, 2017/06/07
- Re: [Qemu-devel] [PULL 0/7] Migration PULL requset, Peter Maydell, 2017/06/07