[Qemu-devel] [PULL 16/20] migration: fix counting normal page for compression

Juan Quintela posted 20 patches 7 years, 2 months ago
[Qemu-devel] [PULL 16/20] migration: fix counting normal page for compression
Posted by Juan Quintela 7 years, 2 months ago
From: Xiao Guangrong <xiaoguangrong@tencent.com>

The compressed page is not normal page

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration/ram.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/migration/ram.c b/migration/ram.c
index 498834bdbe..9d2ec247ec 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1910,7 +1910,6 @@ retry:
             qemu_cond_signal(&comp_param[idx].cond);
             qemu_mutex_unlock(&comp_param[idx].mutex);
             pages = 1;
-            ram_counters.normal++;
             ram_counters.transferred += bytes_xmit;
             break;
         }
-- 
2.17.1