[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 07/12] migration: Start of multiple fd work
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PULL 07/12] migration: Start of multiple fd work |
Date: |
Tue, 14 Feb 2017 13:57:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 13/02/2017 18:19, Juan Quintela wrote:
> + qemu_sem_init(&p->init, 0);
> p->quit = false;
> + p->c = socket_send_channel_create();
> + if (!p->c) {
> + error_report("Error creating a send channel");
> + exit(0);
> + }
> snprintf(thread_name, 15, "multifd_send_%d", i);
> qemu_thread_create(&p->thread, thread_name, multifd_send_thread, p,
> QEMU_THREAD_JOINABLE);
> + qemu_sem_wait(&p->init);
Why do you need p->init here? Could initialization proceed in parallel
for all the threads?
Paolo
- [Qemu-devel] [PULL 01/12] migration: Test for disabled features on reception, (continued)
- [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
- [Qemu-devel] [PULL 07/12] migration: Start of multiple fd work, Juan Quintela, 2017/02/13
[Qemu-devel] [PULL 08/12] migration: Create ram_multifd_page, Juan Quintela, 2017/02/13
[Qemu-devel] [PULL 10/12] migration: Really use multiple pages at a time, Juan Quintela, 2017/02/13
[Qemu-devel] [PULL 12/12] migration: Test new fd infrastructure, Juan Quintela, 2017/02/13
[Qemu-devel] [PULL 09/12] migration: Create thread infrastructure for multifd send side, Juan Quintela, 2017/02/13
Re: [Qemu-devel] [PATCH 00/12] Multifd v4, Peter Maydell, 2017/02/14