Received: from eggs.gnu.org ([2001:4830:134:3::10]:35363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0rwT-0007M8-Rs for qemu-devel@nongnu.org; Fri, 05 Jun 2015 09:45:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0rwO-0001W1-30 for qemu-devel@nongnu.org; Fri, 05 Jun 2015 09:45:49 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:33941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0rwN-0001Vn-Q4 for qemu-devel@nongnu.org; Fri, 05 Jun 2015 09:45:44 -0400 Received: by wgv5 with SMTP id 5so57323656wgv.1 for ; Fri, 05 Jun 2015 06:45:43 -0700 (PDT) Date: Fri, 5 Jun 2015 14:45:39 +0100 From: Stefan Hajnoczi Message-ID: <20150605134539.GA16379@stefanha-thinkpad.redhat.com> References: <1433400324-7358-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <1433400324-7358-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 00/13] main-loop: Get rid of fd_read_poll and qemu_set_fd_handler2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , Jason Wang , qemu-devel@nongnu.org, Vincenzo Maffione , Stefan Hajnoczi , Paolo Bonzini , Giuseppe Lettieri , Luigi Rizzo --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 04, 2015 at 02:45:11PM +0800, Fam Zheng wrote: > v4: Remove unnecessary variable "can_send" in 06. [Stefan, Jason] >=20 > This carries out the mandate in the comment of qemu_set_fd_handler2 and r= emoves > fd_read_poll from the code base, because it will make the work easier to > convert ppoll to epoll in main loop, as well as convert iohandler to GSou= rce. > Also, the aio interface doesn't have a read poll callback, which means th= is > conversion woule be necessary if we want to move things from main loop to > AioContext. >=20 > There are five users of the read poll callback now: qemu-nbd, l2tpv3, net= map, > socket and tap. >=20 > Patch 1 adds a stub for qemu_set_fd_handler which will be referenced in c= oming > patches. >=20 > Patch 2 converts qemu-nbd which compares two global numbers in the fd_rea= d_poll > callback. >=20 > Patches 2~5 converts the four net devices, all of which checks > qemu_can_send_packet() in the callback. >=20 > Patch 6 and 7 finally removes the function. >=20 > The rest of the series is cleaning up of dead code. >=20 > Please review! >=20 >=20 > Fam Zheng (13): > stubs: Add qemu_set_fd_handler > qemu-nbd: Switch to qemu_set_fd_handler > l2tpv3: Drop l2tpv3_can_send > netmap: Drop netmap_can_send > net/socket: Drop net_socket_can_send > tap: Drop tap_can_send > Change qemu_set_fd_handler2(..., NULL, ...) to qemu_set_fd_handler > main-loop: Drop qemu_set_fd_handler2 > alsaaudio: Remove unused error handling of qemu_set_fd_handler > oss: Remove unused error handling of qemu_set_fd_handler > xen_backend: Remove unused error handling of qemu_set_fd_handler > event-notifier: Always return 0 for posix implementation > iohandler: Change return type of qemu_set_fd_handler to "void" >=20 > audio/alsaaudio.c | 16 ++----------- > audio/ossaudio.c | 14 ++++++----- > blockdev-nbd.c | 4 ++-- > hw/xen/xen_backend.c | 4 +--- > include/block/aio.h | 2 +- > include/qemu/main-loop.h | 57 ++++-----------------------------------= ------ > iohandler.c | 21 ++--------------- > main-loop.c | 3 +-- > migration/exec.c | 6 ++--- > migration/fd.c | 4 ++-- > migration/rdma.c | 7 +++--- > migration/tcp.c | 6 ++--- > migration/unix.c | 6 ++--- > net/l2tpv3.c | 17 ++++---------- > net/netmap.c | 20 ++++------------ > net/socket.c | 37 +++++++++++++++++------------ > net/tap.c | 19 ++++----------- > qemu-nbd.c | 21 +++++++++++++---- > stubs/set-fd-handler.c | 3 +-- > ui/vnc-auth-sasl.c | 2 +- > ui/vnc-auth-vencrypt.c | 2 +- > ui/vnc-ws.c | 6 ++--- > ui/vnc.c | 27 ++++++++++----------- > util/event_notifier-posix.c | 3 ++- > util/qemu-sockets.c | 8 +++---- > 25 files changed, 112 insertions(+), 203 deletions(-) >=20 > --=20 > 2.4.2 >=20 >=20 Thanks, applied to my net-next tree: https://github.com/stefanha/qemu/commits/net-next Stefan --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVcagDAAoJEJykq7OBq3PI7NsIAIiw5e/OQ8Cw251fWrnKJSbI 8ksocbvXdcniYQN8fPv7irpW6T9BeZHuM3LRINcxXAh1LilQyAAVEGwZkvSwREmh y0TlwhlGN7YI9I97/skhse5t3em2ISe5dyZChWSmMTrP0s3xbWi7QsPnghki6l1X kqwWi3BG1rUbM//RPpFsK2GIMMqCyE/UNZ2gcpItgKDUEBhoLcO+HeeJWCrKhOJ4 O9iaZ2P4W1QUg9abYR0Vq0sHhfio+fcf6eHcSHToyJchoLeelnDOfnYGRl5uoSTQ gEr+fZCRWtW1eKXcu396O034yFlQbGVikkZO6i8n6RLX2krNo0L08EQRVT68lQQ= =vHMz -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--