Re: [Qemu-devel] [PATCH v5 07/17] migration: Create multifd migration threads

2017-08-08 Thread Juan Quintela
"Dr. David Alan Gilbert" wrote: > * Juan Quintela (quint...@redhat.com) wrote: >> Creation of the threads, nothing inside yet. >> >> Signed-off-by: Juan Quintela >> +MultiFDSendParams *p = &multifd_send_state->params[i]; >> + >> +qemu_mutex_lock(&p->mutex); >> +p->quit =

Re: [Qemu-devel] [PATCH v5 07/17] migration: Create multifd migration threads

2017-07-19 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > Creation of the threads, nothing inside yet. > > Signed-off-by: Juan Quintela > > -- > > Use pointers instead of long array names > Move to use semaphores instead of conditions as paolo suggestion > > Put all the state inside one struct. > Use a c