Re: [Qemu-devel] [RFC v2 06/33] migration: reuse mis->userfault_quit_fd

2017-09-20 Thread Juan Quintela
Peter Xu wrote: > @@ -448,8 +449,15 @@ static void *postcopy_ram_fault_thread(void *opaque) > } > > if (pfd[1].revents) { > -trace_postcopy_ram_fault_thread_quit(); > -break; > +uint64_t tmp64 = 0; > + > +/* Consume the signal */

Re: [Qemu-devel] [RFC v2 06/33] migration: reuse mis->userfault_quit_fd

2017-09-20 Thread Juan Quintela
Peter Xu wrote: > It was only used for quitting the page fault thread before. Let it be > something more useful - now we can use it to notify a "wake" for the > page fault thread (for any reason), and it only means "quit" if the > fault_thread_quit is set. > > Since we changed what it does, renami

[Qemu-devel] [RFC v2 06/33] migration: reuse mis->userfault_quit_fd

2017-08-30 Thread Peter Xu
It was only used for quitting the page fault thread before. Let it be something more useful - now we can use it to notify a "wake" for the page fault thread (for any reason), and it only means "quit" if the fault_thread_quit is set. Since we changed what it does, renaming it to userfault_event_fd.