From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LBBET-0008M7-LT for qemu-devel@nongnu.org; Fri, 12 Dec 2008 11:51:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LBBER-0008KK-8Z for qemu-devel@nongnu.org; Fri, 12 Dec 2008 11:51:16 -0500 Received: from [199.232.76.173] (port=33634 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LBBER-0008KC-2K for qemu-devel@nongnu.org; Fri, 12 Dec 2008 11:51:15 -0500 Received: from an-out-0708.google.com ([209.85.132.245]:54202) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LBBEQ-0006ZO-Nr for qemu-devel@nongnu.org; Fri, 12 Dec 2008 11:51:14 -0500 Received: by an-out-0708.google.com with SMTP id c38so729318ana.37 for ; Fri, 12 Dec 2008 08:51:13 -0800 (PST) Message-ID: <4942967D.2070206@codemonkey.ws> Date: Fri, 12 Dec 2008 10:51:09 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Replace posix-aio with custom thread pool References: <20081211155335.GE14908@random.random> <49413B9C.3030703@redhat.com> <20081211164947.GD6809@random.random> <49414BC9.5090905@redhat.com> <20081211181116.GE6809@random.random> <20081212082309.GI23742@kernel.dk> <20081212115133.GI6809@random.random> <20081212115420.GR23742@kernel.dk> <20081212141333.GJ6809@random.random> <4942741C.4090802@codemonkey.ws> <20081212163317.GA30239@acer.localdomain> In-Reply-To: <20081212163317.GA30239@acer.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Wright Cc: Andrea Arcangeli , qemu-devel@nongnu.org, kvm-devel , Gerd Hoffmann Chris Wright wrote: > * Anthony Liguori (anthony@codemonkey.ws) wrote: > >>> It's available in recent kernels I see! so the fix is easy. Only >>> problem is how to pass CLONE_IO to pthread_create... We'll have to >>> make a linux-only change and call clone by hand under some #ifdef >>> CLONE_IO. >>> >> I have no problem with this and I believe Chris was going to attempt an >> implementation. >> > > I have an implementation that is just raw clone and futex (so not portable > from linux/x86). I'll post it later today. We'll need glibc changes > down the road to properly handle. > I just committed the posix-aio switch to thread pool so it would be great if you could base on that. Regards, Anthony Liguori > thanks, > -chris >