[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 07/12] migration: use save_page_use_compression in fl
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 07/12] migration: use save_page_use_compression in flush_compressed_data |
Date: |
Thu, 13 Sep 2018 14:53:38 +0200 |
From: Xiao Guangrong <address@hidden>
It avoids to touch compression locks if xbzrle and compression
are both enabled
Signed-off-by: Xiao Guangrong <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
migration/ram.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/migration/ram.c b/migration/ram.c
index 65a563993d..747dd9208b 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1932,11 +1932,13 @@ update_compress_thread_counts(const CompressParam
*param, int bytes_xmit)
compression_counters.pages++;
}
+static bool save_page_use_compression(RAMState *rs);
+
static void flush_compressed_data(RAMState *rs)
{
int idx, len, thread_count;
- if (!migrate_use_compression()) {
+ if (!save_page_use_compression(rs)) {
return;
}
thread_count = migrate_compress_threads();
--
2.17.1
- [Qemu-devel] [PULL 00/12] Migration queue, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 02/12] migration: fix calculating xbzrle_counters.cache_miss_rate, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 01/12] migration/rdma: Fix uninitialised rdma_return_path, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 03/12] migration: handle the error condition properly, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 07/12] migration: use save_page_use_compression in flush_compressed_data,
Juan Quintela <=
- [Qemu-devel] [PULL 04/12] Add a hint message to loadvm and exits on failure, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 06/12] migration: show the statistics of compression, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 05/12] migration: do not flush_compressed_data at the end of iteration, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 08/12] tests/migration: Convert x86 boot block compilation script into Makefile, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 10/12] tests/migration: Add migration-test header file, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 09/12] tests/migration: Support cross compilation in generating boot header file, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 11/12] tests: Add migration test for aarch64, Juan Quintela, 2018/09/13
- [Qemu-devel] [PULL 12/12] tests/migration: Enable the migration test on s390x, too, Juan Quintela, 2018/09/13