qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-block@nongnu.org, Stefan Weil <sw@weilnetz.de>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Jan Kiszka <jan.kiszka@siemens.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: [Qemu-devel] [PATCH 0/9] slirp: iohandler: Rebase onto aio
Date: Wed, 10 Jun 2015 16:59:42 +0800	[thread overview]
Message-ID: <1433926791-10580-1-git-send-email-famz@redhat.com> (raw)

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

             reply	other threads:[~2015-06-10  9:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10  8:59 Fam Zheng [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433926791-10580-1-git-send-email-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).