qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] aio: Use epoll in aio_poll()
@ 2015-10-12  9:55 Fam Zheng
  2015-10-12  9:55 ` [Qemu-devel] [PATCH 1/3] aio: Move AioHandler struct to header Fam Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fam Zheng @ 2015-10-12  9:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pbonzini, qemu-block, Stefan Hajnoczi

This series adds the ability to use epoll in aio_poll() on Linux. It's switched
on in a dynamic way rather than static for two reasons: 1) when the number of
fds is not high enough, using epoll has little advantage; 2) when an epoll
incompatible fd needs to be handled, we need to fall back.  The epoll is
enabled when a fd number threshold is met.



Fam Zheng (3):
  aio: Move AioHandler struct to header
  aio: Introduce aio_context_setup
  aio: Introduce aio-epoll.c

 Makefile.objs                |   1 +
 aio-epoll.c                  | 150 +++++++++++++++++++++++++++++++++++++++++++
 aio-posix.c                  |  31 +++++----
 aio-win32.c                  |  16 ++---
 async.c                      |  14 +++-
 include/block/aio-internal.h |  47 ++++++++++++++
 include/block/aio.h          |   5 ++
 stubs/Makefile.objs          |   1 +
 stubs/aio-epoll.c            |  37 +++++++++++
 9 files changed, 277 insertions(+), 25 deletions(-)
 create mode 100644 aio-epoll.c
 create mode 100644 include/block/aio-internal.h
 create mode 100644 stubs/aio-epoll.c

-- 
2.6.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-12 11:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12  9:55 [Qemu-devel] [PATCH 0/3] aio: Use epoll in aio_poll() Fam Zheng
2015-10-12  9:55 ` [Qemu-devel] [PATCH 1/3] aio: Move AioHandler struct to header Fam Zheng
2015-10-12  9:55 ` [Qemu-devel] [PATCH 2/3] aio: Introduce aio_context_setup Fam Zheng
2015-10-12  9:55 ` [Qemu-devel] [PATCH 3/3] aio: Introduce aio-epoll.c Fam Zheng
2015-10-12 10:06   ` Paolo Bonzini
2015-10-12 11:24     ` Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).