From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiO6F-0006iv-GZ for qemu-devel@nongnu.org; Thu, 08 May 2014 09:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiO69-0005oi-0v for qemu-devel@nongnu.org; Thu, 08 May 2014 09:10:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiO68-0005oc-Pn for qemu-devel@nongnu.org; Thu, 08 May 2014 09:10:52 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s48DAptV017430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 8 May 2014 09:10:52 -0400 Message-ID: <536B8258.2020902@redhat.com> Date: Thu, 08 May 2014 15:10:48 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140508101655.GA7534@stefanha-thinkpad.redhat.com> <20140508130846.GC4034@noname.redhat.com> In-Reply-To: <20140508130846.GC4034@noname.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] dataplane: IOThreads and writing dataplane-capable code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Stefan Hajnoczi Cc: Fam Zheng , qemu-devel@nongnu.org, Max Reitz Il 08/05/2014 15:08, Kevin Wolf ha scritto: > Am 08.05.2014 um 12:16 hat Stefan Hajnoczi geschrieben: >> Side note: The main loop and IOThread are both event loops but their code is >> not shared completely. Sometimes it is useful to remember that although they >> are conceptually similar they are currently not interchangeable. > > We need to be careful with the terminology. The choice made here, that > the main loop thread is not an IOThread, is somewhat unfortunate, > because traditionally, the "I/O thread" has been what the main loop > thread is called (in contrast to vcpu threads). Note that the main loop thread could definitely be an IOThread, since it has an AioContext and the IOThread is just a QOM veneer for AioContext. It's just not done yet. Paolo