From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZNGd-0001hK-RE for qemu-devel@nongnu.org; Mon, 06 May 2013 11:24:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZNGc-00010A-FP for qemu-devel@nongnu.org; Mon, 06 May 2013 11:23:55 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:47205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZNGT-0000j0-Kv for qemu-devel@nongnu.org; Mon, 06 May 2013 11:23:54 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 May 2013 01:18:12 +1000 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [9.190.235.21]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 7B9292BB2E76 for ; Mon, 6 May 2013 22:25:36 +1000 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r46CPSS622872156 for ; Mon, 6 May 2013 22:25:29 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r46CPYpT010325 for ; Mon, 6 May 2013 22:25:34 +1000 From: Anthony Liguori In-Reply-To: <518761A6.4010209@redhat.com> References: <1367597032-28934-1-git-send-email-mdroth@linux.vnet.ibm.com> <518761A6.4010209@redhat.com> Date: Mon, 06 May 2013 07:25:24 -0500 Message-ID: <87obco2t3f.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [RFC 0/9] QContext: QOM class to support multiple event loops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Michael Roth Cc: qemu-devel@nongnu.org, stefanha@redhat.com, qemulist@gmail.com Paolo Bonzini writes: > Il 03/05/2013 18:03, Michael Roth ha scritto: >> These patches apply on top of qemu.git master, and can also be obtained from: >> git://github.com/mdroth/qemu.git qcontext >> >> OVERVIEW >> >> This series introduces a set of QOM classes/interfaces for event >> registration/handling: QContext and QSource, which are based closely on >> their GMainContext/GSource GLib counterparts. >> >> QContexts can be created via the command-line via -object, and can also be >> intructed (via -object params/properties) to automatically start a >> thread/event-loop to handle QSources we attach to them. > > This is an awesome idea. Ack. > However, it seems a bit overengineered. Ack. > Why do we need QSource at all? > In my opinion, we should first change dataplane to use AioContext as a > GSource, and benchmark it thoroughly. If it is fast enough, we can > "just" introduce a glib-based QContext and be done with it. Hopefully > that is the case... Why even bother with QContext then? Regards, Anthony Liguori > > Paolo