Received: from eggs.gnu.org ([2001:4830:134:3::10]:53811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4rfS-0001uz-4v for qemu-devel@nongnu.org; Tue, 16 Jun 2015 10:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4rfP-000064-Ar for qemu-devel@nongnu.org; Tue, 16 Jun 2015 10:16:46 -0400 Date: Tue, 16 Jun 2015 15:16:37 +0100 From: Stefan Hajnoczi Message-ID: <20150616141637.GB4958@stefanha-thinkpad.redhat.com> References: <1433926791-10580-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline In-Reply-To: <1433926791-10580-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 0/9] slirp: iohandler: Rebase onto aio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , qemu-block@nongnu.org, Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi , Jan Kiszka , Paolo Bonzini --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 10, 2015 at 04:59:42PM +0800, Fam Zheng wrote: > Currently iohandler.c and asyn.c has a lot in common, except that iohandl= er is > hooked into main_loop_wait(), with qemu_iohandler_fill(). Likewise for sl= irp. >=20 > It is much cleaner to drive slirp fds with iohandler, and implement > iohandler with an AioContext. This series does these two things. It appli= es to > Stefan's net-next tree which has the prerequisite that removes the obstac= le > "qemu_set_fd_handler2" for this convergence: >=20 > http://comments.gmane.org/gmane.comp.emulators.qemu/341526 >=20 > Upon that this series makes a more consistent main loop structure, and wi= ll > 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). >=20 >=20 > 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 >=20 > 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(-) Pinging Jan Kiszka for slirp changes. --l76fUT7nc3MelDdI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVgC/FAAoJEJykq7OBq3PIB4cIAJcPz4OOXY+19oN+n8W6ZwOn 5jc7+jfltGKdhyU4APu3C03LprAoZ/JSkVr3q2fAh+WqPaczm7OZfDbGV5JqyjvZ 8/d5WdKydxpOSaz2y52ZNJwbObZND1ebBiHC8dtL8TFZuDq9B9PztMAxUy2bByhK kI0rzehQR9hYgHAlht4UuzXZtUj6UFW4D9VZFYnqx3Gl7xXnWe95YXvabETqAMPK 8mgs2ND55hm1gHy6qHShiu6T02gXzlzrbrrhy3Fo8aXzEtU62W1eMe5im4pJx5X/ Pr/Je1HQ6o8PtQUlC79XL2aNTJSB0zbL3caU3S84IwcjxVxWiLV78lT6s+efyRI= =zc8P -----END PGP SIGNATURE----- --l76fUT7nc3MelDdI--