[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/12] migration: Don't create decompression threads
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 02/12] migration: Don't create decompression threads if not enabled |
Date: |
Mon, 13 Feb 2017 18:19:38 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
--
I removed the [HACK] part because previous patch just check that
compression pages are not received.
---
migration/ram.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/migration/ram.c b/migration/ram.c
index 5817f8c..4422ee8 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -2251,6 +2251,9 @@ void migrate_decompress_threads_create(void)
{
int i, thread_count;
+ if (!migrate_use_compression()) {
+ return;
+ }
thread_count = migrate_decompress_threads();
decompress_threads = g_new0(QemuThread, thread_count);
decomp_param = g_new0(DecompressParam, thread_count);
@@ -2272,6 +2275,9 @@ void migrate_decompress_threads_join(void)
{
int i, thread_count;
+ if (!migrate_use_compression()) {
+ return;
+ }
thread_count = migrate_decompress_threads();
for (i = 0; i < thread_count; i++) {
qemu_mutex_lock(&decomp_param[i].mutex);
--
2.7.4
- [Qemu-devel] [PATCH 00/12] Multifd v4, Juan Quintela, 2017/02/13
- [Qemu-devel] [PULL 02/12] migration: Don't create decompression threads if not enabled,
Juan Quintela <=
- [Qemu-devel] [PULL 03/12] migration: Add multifd capability, Juan Quintela, 2017/02/13
- [Qemu-devel] [PULL 01/12] migration: Test for disabled features on reception, Juan Quintela, 2017/02/13
- [Qemu-devel] [PULL 04/12] migration: Create x-multifd-threads parameter, Juan Quintela, 2017/02/13
- [Qemu-devel] [PULL 06/12] migration: Create multifd migration threads, Juan Quintela, 2017/02/13
- [Qemu-devel] [PULL 05/12] migration: Create x-multifd-group parameter, Juan Quintela, 2017/02/13
- [Qemu-devel] [PULL 11/12] migration: Send the fd number which we are going to use for this page, Juan Quintela, 2017/02/13