[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 04/16] migration: Don't create decompression thr
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] [PATCH 04/16] migration: Don't create decompression threads if not enabled |
Date: |
Mon, 13 Mar 2017 16:25:21 +0000 |
User-agent: |
Mutt/1.7.1 (2016-10-04) |
* Juan Quintela (address@hidden) wrote:
> Signed-off-by: Juan Quintela <address@hidden>
>
> --
>
> I removed the [HACK] part because previous patch just check that
> compression pages are not received.
>
> Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
> ---
> migration/ram.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/migration/ram.c b/migration/ram.c
> index 65419c1..aa51dbd 100644
> --- a/migration/ram.c
> +++ b/migration/ram.c
> @@ -2306,6 +2306,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);
> @@ -2327,6 +2330,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.9.3
>
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
- [Qemu-devel] [PATCH 00/16] Multifd v4, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 01/16] qio: create new qio_channel_write_all, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 03/16] migration: Test for disabled features on reception, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 04/16] migration: Don't create decompression threads if not enabled, Juan Quintela, 2017/03/13
- Re: [Qemu-devel] [PATCH 04/16] migration: Don't create decompression threads if not enabled,
Dr. David Alan Gilbert <=
- [Qemu-devel] [PATCH 02/16] qio: create new qio_channel_read_all, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 05/16] migration: Add multifd capability, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 07/16] migration: Create x-multifd-group parameter, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 08/16] migration: Create multifd migration threads, Juan Quintela, 2017/03/13
- [Qemu-devel] [PATCH 06/16] migration: Create x-multifd-threads parameter, Juan Quintela, 2017/03/13