qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/9] slirp: iohandler: Rebase onto aio
@ 2015-06-10  8:59 Fam Zheng
  2015-06-10  8:59 ` [Qemu-devel] [PATCH 1/9] aio: Introduce aio_set_fd_handler_pri Fam Zheng
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Fam Zheng @ 2015-06-10  8:59 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, qemu-block, Stefan Weil, Stefan Hajnoczi, Jan Kiszka,
	Paolo Bonzini

Currently iohandler.c and asyn.c has a lot in common, except that iohandler is
hooked into main_loop_wait(), with qemu_iohandler_fill(). Likewise for slirp.

It is much cleaner to drive slirp fds with iohandler, and implement
iohandler with an AioContext. This series does these two things. It applies to
Stefan's net-next tree which has the prerequisite that removes the obstacle
"qemu_set_fd_handler2" for this convergence:

  http://comments.gmane.org/gmane.comp.emulators.qemu/341526

Upon that this series makes a more consistent main loop structure, and will
also benefits future work on event loop, such as introducing of epoll and
possibly in the long run moving things to separate iothread (whose event loop
is based on AioContext too).


Fam Zheng (9):
  aio: Introduce aio_set_fd_handler_pri
  iohandler: Use aio code
  main-loop: Move include of "qemu/sockets.h" to libslirp.h
  slirp: Remove dead code for "PROBE_CONN"
  slirp: Add "poll_events" to struct socket
  slirp: Move icmp socket to iohandler
  slirp: Move udb socket to iohandler
  slirp: Move tcb socket to iohandler
  slirp: Remove unused pollfds from the parameter list

 aio-posix.c              |  19 ++
 aio-win32.c              |  10 +
 include/block/aio.h      |   8 +
 include/qemu/main-loop.h |  10 +-
 iohandler.c              | 124 +++--------
 main-loop.c              |  10 +-
 slirp/libslirp.h         |   5 +-
 slirp/slirp.c            | 528 +++++++++++++++++++----------------------------
 slirp/slirp_config.h     |   4 -
 slirp/socket.h           |   1 +
 stubs/slirp.c            |   4 +-
 11 files changed, 300 insertions(+), 423 deletions(-)

-- 
2.4.2

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

end of thread, other threads:[~2015-06-19  1:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-10  8:59 [Qemu-devel] [PATCH 0/9] slirp: iohandler: Rebase onto aio Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 1/9] aio: Introduce aio_set_fd_handler_pri Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 2/9] iohandler: Use aio code Fam Zheng
2015-06-16 13:57   ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2015-06-19  1:05     ` Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 3/9] main-loop: Move include of "qemu/sockets.h" to libslirp.h Fam Zheng
2015-06-16 13:58   ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2015-06-10  8:59 ` [Qemu-devel] [PATCH 4/9] slirp: Remove dead code for "PROBE_CONN" Fam Zheng
2015-06-16 14:00   ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2015-06-10  8:59 ` [Qemu-devel] [PATCH 5/9] slirp: Add "poll_events" to struct socket Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 6/9] slirp: Move icmp socket to iohandler Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 7/9] slirp: Move udb " Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 8/9] slirp: Move tcb " Fam Zheng
2015-06-10  8:59 ` [Qemu-devel] [PATCH 9/9] slirp: Remove unused pollfds from the parameter list Fam Zheng
2015-06-16 14:15   ` Stefan Hajnoczi
2015-06-19  1:03     ` Fam Zheng
2015-06-16 14:16 ` [Qemu-devel] [Qemu-block] [PATCH 0/9] slirp: iohandler: Rebase onto aio Stefan Hajnoczi

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).