Re: [Qemu-devel] [PATCH v3 2/2] main-loop: Use epoll on Linux

2014-11-05 Thread Paolo Bonzini
On 27/10/2014 08:30, Fam Zheng wrote: > > +static int epoll_prepare(int epollfd, > + GPollFD *fds, guint nfds, > + GPollFD **g_poll_fds, > + guint *g_poll_nfds, > + int **g_poll_fd_idx) Please pass t

[Qemu-devel] [PATCH v3 2/2] main-loop: Use epoll on Linux

2014-10-27 Thread Fam Zheng
A new implementation for qemu_poll_ns based on epoll is introduced here to address the slowness of g_poll and ppoll when the number of fds are high. On my laptop this would reduce the virtio-blk on top of null-aio device's response time from 32 us to 29 us with few fds (~10), and 48 us to 32 us wi