Re: [Qemu-devel] [PATCH 1/3] io: add methods to set I/O handlers on AioContext

2017-01-04 Thread Daniel P. Berrange
On Fri, Dec 23, 2016 at 07:26:39PM +0100, Paolo Bonzini wrote: > This is in preparation for making qio_channel_yield work on > AioContexts other than the main one. > > Signed-off-by: Paolo Bonzini > --- > include/io/channel.h | 42 ++ > io/channel-socket.c

Re: [Qemu-devel] [PATCH 1/3] io: add methods to set I/O handlers on AioContext

2017-01-04 Thread Paolo Bonzini
On 04/01/2017 17:45, Eric Blake wrote: >> -#ifdef WIN32 >> -WSAEventSelect(sioc->fd, ioc->event, >> - FD_READ | FD_ACCEPT | FD_CLOSE | >> - FD_CONNECT | FD_WRITE | FD_OOB); >> -#endif >> } >> return 0; > How does this hunk fit in? > >

Re: [Qemu-devel] [PATCH 1/3] io: add methods to set I/O handlers on AioContext

2017-01-04 Thread Eric Blake
On 12/23/2016 12:26 PM, Paolo Bonzini wrote: > This is in preparation for making qio_channel_yield work on > AioContexts other than the main one. > > Signed-off-by: Paolo Bonzini > --- > include/io/channel.h | 42 ++ > io/channel-socket.c | 16 +++

[Qemu-devel] [PATCH 1/3] io: add methods to set I/O handlers on AioContext

2016-12-23 Thread Paolo Bonzini
This is in preparation for making qio_channel_yield work on AioContexts other than the main one. Signed-off-by: Paolo Bonzini --- include/io/channel.h | 42 ++ io/channel-socket.c | 16 +++- io/channel-tls.c | 12 io/channel-w