From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8aWj-00019l-My for qemu-devel@nongnu.org; Mon, 25 May 2009 09:47:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8aWe-00017e-Hj for qemu-devel@nongnu.org; Mon, 25 May 2009 09:47:40 -0400 Received: from [199.232.76.173] (port=39233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8aWe-00017b-D0 for qemu-devel@nongnu.org; Mon, 25 May 2009 09:47:36 -0400 Received: from mx2.redhat.com ([66.187.237.31]:37720) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8aWd-0000H4-T4 for qemu-devel@nongnu.org; Mon, 25 May 2009 09:47:36 -0400 Message-ID: <4A1AA162.1050403@redhat.com> Date: Mon, 25 May 2009 16:47:14 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Do we need CONFIG_AIO? References: <20090525082151.GA4107@lst.de> <4A1A85B4.3060200@eu.citrix.com> <20090525133554.GA16351@fries.net> In-Reply-To: <20090525133554.GA16351@fries.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: todd@fries.net Cc: "qemu-devel@nongnu.org" , Christoph Hellwig , Stefano Stabellini Todd T. Fries wrote: > Penned by Stefano Stabellini on 20090525 12:49.08, we have: > | Christoph Hellwig wrote: > | > | > Currently all aio code in the raw-posix block driver depends on a > | > CONFIG_AIO symbol that gets set based on the availability of the > | > pthreads library. Beeing able to rely on unconditional aio support > | > means we could remove the whole code for plain bdrv_read/bdrv_write > | > in raw-posix.c which is about 300 lines of code and a duplicated code > | > path. Is there any Posix-ish platform qemu supports that does not > | > have pthreads support? > | > > | > | MiniOS. > | I would appreciate if you keep that flag. > > You seem to be under the illusion that pthreads implies AIO. > He isn't. > OpenBSD has two flavors of threads libraries (arguably one is not > fit for consumption yet) and neither provide AIO. > > This flag is most useful for OpenBSD as well. > Qemu's CONFIG_AIO requires thread support from the host, not posix aio support. -- error compiling committee.c: too many arguments to function