[Qemu-devel] [PATCH] eventfd: making it thread safe

2012-08-21 Thread David Gibson
From: Alexey Kardashevskiy QEMU uses IO handlers to run select() in the main loop. The handlers list is managed by qemu_set_fd_handler() helper which works fine when called from the main thread as it is called when select() is not waiting. However IO handlers list can be changed in the thread ot

Re: [Qemu-devel] [PATCH] eventfd: making it thread safe

2012-08-06 Thread Paolo Bonzini
Il 07/08/2012 06:02, David Gibson ha scritto: >> Perhaps it's better to do this unconditionally (on the delete path too) >> so that removals are processed without delay and we don't have closed >> fds hanging around in select(). > > Well, I understand that Alexey discussed the patch with Paolo and

Re: [Qemu-devel] [PATCH] eventfd: making it thread safe

2012-08-06 Thread David Gibson
On Mon, Aug 06, 2012 at 05:05:57PM +0300, Avi Kivity wrote: > On 08/01/2012 07:05 AM, David Gibson wrote: > > From: Alexey Kardashevskiy > > > > QEMU uses IO handlers to run select() in the main loop. > > The handlers list is managed by qemu_set_fd_handler() helper > > which works fine when calle

Re: [Qemu-devel] [PATCH] eventfd: making it thread safe

2012-08-06 Thread Avi Kivity
On 08/01/2012 07:05 AM, David Gibson wrote: > From: Alexey Kardashevskiy > > QEMU uses IO handlers to run select() in the main loop. > The handlers list is managed by qemu_set_fd_handler() helper > which works fine when called from the main thread as it is > called when select() is not waiting. >

[Qemu-devel] [PATCH] eventfd: making it thread safe

2012-07-31 Thread David Gibson
From: Alexey Kardashevskiy QEMU uses IO handlers to run select() in the main loop. The handlers list is managed by qemu_set_fd_handler() helper which works fine when called from the main thread as it is called when select() is not waiting. However IO handlers list can be changed in the thread ot

[Qemu-devel] [PATCH] eventfd: making it thread safe

2012-07-25 Thread Alexey Kardashevskiy
QEMU uses IO handlers to run select() in the main loop. The handlers list is managed by qemu_set_fd_handler() helper which works fine when called from the main thread as it is called when select() is not waiting. However IO handlers list can be changed in the thread other than the main one doing o

Re: [Qemu-devel] [PATCH] eventfd: making it thread safe

2012-07-18 Thread Alexey Kardashevskiy
On 18/07/12 22:22, Michael S. Tsirkin wrote: > On Wed, Jul 18, 2012 at 10:08:53PM +1000, Alexey Kardashevskiy wrote: >> QEMU uses IO handlers to run select() in the main loop. >> The handlers list is managed by qemu_set_fd_handler() helper >> which works fine when called from the main thread as it

[Qemu-devel] [PATCH] eventfd: making it thread safe

2012-07-18 Thread Alexey Kardashevskiy
QEMU uses IO handlers to run select() in the main loop. The handlers list is managed by qemu_set_fd_handler() helper which works fine when called from the main thread as it is called when select() is not waiting. However IO handlers list can be changed in the thread other than the main one doing o

Re: [Qemu-devel] [PATCH] eventfd: making it thread safe

2012-07-18 Thread Michael S. Tsirkin
On Wed, Jul 18, 2012 at 10:08:53PM +1000, Alexey Kardashevskiy wrote: > QEMU uses IO handlers to run select() in the main loop. > The handlers list is managed by qemu_set_fd_handler() helper > which works fine when called from the main thread as it is > called not when select() is waiting. when se

[Qemu-devel] [PATCH] eventfd: making it thread safe

2012-07-18 Thread Alexey Kardashevskiy
QEMU uses IO handlers to run select() in the main loop. The handlers list is managed by qemu_set_fd_handler() helper which works fine when called from the main thread as it is called not when select() is waiting. However IO handlers list can be changed in the thread other than the main one doing o