aboutsummaryrefslogtreecommitdiff
path: root/arch_init.c
diff options
context:
space:
mode:
authorChenLiang <chenliang88@huawei.com>2014-04-04 17:57:54 +0800
committerJuan Quintela <quintela@redhat.com>2014-05-05 22:15:03 +0200
commit71411d358000cf90ced348b1ce9142c13b5a93cd (patch)
tree422cf13c1f894b5205b9fd82a0213fb5dacd147b /arch_init.c
parent1534ee93cc6be992c05577886b24bd44c37ecff6 (diff)
migration: Add counts of updating the dirty bitmap
Add counts to log the times of updating the dirty bitmap. Signed-off-by: ChenLiang <chenliang88@huawei.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r--arch_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch_init.c b/arch_init.c
index 0ffecee7fb..c02bce65f6 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -111,6 +111,8 @@ static bool mig_throttle_on;
static int dirty_rate_high_cnt;
static void check_guest_throttling(void);
+static uint64_t bitmap_sync_count;
+
/***********************************************************/
/* ram save/restore */
@@ -488,6 +490,8 @@ static void migration_bitmap_sync(void)
int64_t end_time;
int64_t bytes_xfer_now;
+ bitmap_sync_count++;
+
if (!bytes_xfer_prev) {
bytes_xfer_prev = ram_bytes_transferred();
}
@@ -732,6 +736,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque)
mig_throttle_on = false;
dirty_rate_high_cnt = 0;
+ bitmap_sync_count = 0;
if (migrate_use_xbzrle()) {
XBZRLE_cache_lock();