On Tue, Aug 21, 2012 at 04:52:28PM +0100, Stefan Hajnoczi wrote: > The net subsystem supports non-blocking sockets and asynchronous send/receive. > Unfortunately, net/socket.c doesn't fully take advantage of that yet. > > This patch series makes send asynchronous and drops code that will spin when > the non-blocking socket would block. Also take advantage of > qemu_set_fd_handler2()'s IOCanReadHandler so that we don't read packets from > the socket when our peer is unable to receive. > > v2: > * Use iov.h instead of readv()/writev() [Peter/Paolo] > > Stefan Hajnoczi (3): > net: asynchronous send/receive infrastructure for net/socket.c > net: EAGAIN handling for net/socket.c UDP > net: EAGAIN handling for net/socket.c TCP > > net/socket.c | 110 > ++++++++++++++++++++++++++++++++++++++++++++++++++-------- > 1 file changed, 96 insertions(+), 14 deletions(-) > > -- > 1.7.10.4 > >
Thanks, applied to the net tree: https://github.com/stefanha/qemu/commits/net Stefan