Received: from eggs.gnu.org ([208.118.235.92]:51409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPAaA-0005D5-Qr for qemu-devel@nongnu.org; Mon, 08 Apr 2013 07:50:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPAa4-0005SA-Rr for qemu-devel@nongnu.org; Mon, 08 Apr 2013 07:49:54 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:36161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPAa4-0005Rp-M7 for qemu-devel@nongnu.org; Mon, 08 Apr 2013 07:49:48 -0400 Received: by mail-wi0-f176.google.com with SMTP id hm14so2446006wib.15 for ; Mon, 08 Apr 2013 04:49:47 -0700 (PDT) Date: Mon, 8 Apr 2013 13:49:45 +0200 From: Stefan Hajnoczi Message-ID: <20130408114945.GG12852@stefanha-thinkpad.redhat.com> References: <1364457355-4119-1-git-send-email-qemulist@gmail.com> <20130328145552.GK22865@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC PATCH v2 0/4] port network layer onto glib List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liu ping fan Cc: Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org, mdroth On Mon, Apr 01, 2013 at 04:15:06PM +0800, liu ping fan wrote: > On Thu, Mar 28, 2013 at 10:55 PM, Stefan Hajnoczi wrote: > > > > On Thu, Mar 28, 2013 at 03:55:51PM +0800, Liu Ping Fan wrote: > > It seems the AioContext vs glib issue hasn't been settled yet. My take > > is that glib is preferrable *if* we don't need to write too many > > helpers/wrappers on top (then we're basically back to rolling our own, > > AioContext). > > > > I was surprised by the amount of code required to listen on a file > > descriptor. Are you sure there isn't a glib way of doing this that > > avoids rolling our own GSource? > > > Will diving more into the code, as mdroth's suggestion. Currently the > main issue is that glib seems no support for readalbe or writable. I mentioned this in another reply. I'm not sure what you mean by glib does not support readable or writeable. It has G_IO_IN and G_IO_OUT for readable/writeable events. > > In the next series, please drop the hub re-entrancy stuff and virtio-net > > data plane. Instead just focus on systematically moving existing net > > clients onto the event loop (net/*.c and NICs). The only controversial > > issue there is AioContext vs glib, and once that's settled we can merge > > the patches. > > > What about the core (queue.c, net.c)? Need I send them out at the > same time or after the backend(clients) convert finished? I think the core changes are necessary to build the converted net clients, so they should be part of the series. Stefan