Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lira7-0007uj-Oq for qemu-devel@nongnu.org; Sun, 15 Mar 2009 10:44:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lira3-0007tJ-O0 for qemu-devel@nongnu.org; Sun, 15 Mar 2009 10:44:51 -0400 Received: from [199.232.76.173] (port=58490 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lira3-0007tG-J3 for qemu-devel@nongnu.org; Sun, 15 Mar 2009 10:44:47 -0400 Received: from verein.lst.de ([213.95.11.210]:39475) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Lira2-0000jk-T9 for qemu-devel@nongnu.org; Sun, 15 Mar 2009 10:44:47 -0400 Received: from verein.lst.de (localhost [127.0.0.1]) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id n2FEijIF031224 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 15 Mar 2009 15:44:45 +0100 Received: (from hch@localhost) by verein.lst.de (8.12.3/8.12.3/Debian-6.6) id n2FEijd8031222 for qemu-devel@nongnu.org; Sun, 15 Mar 2009 15:44:45 +0100 Date: Sun, 15 Mar 2009 15:44:45 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH 6/6] experimental native preadv/pwritev support for Linux Message-ID: <20090315144445.GB30986@lst.de> References: <20090314192701.GA3497@lst.de> <20090314193127.GC3799@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, Mar 15, 2009 at 04:36:16PM +0200, Blue Swirl wrote: > On 3/14/09, Christoph Hellwig wrote: > > > > > > This ties up Gerd Hoffmann's unmegred preadv/pwritev syscalls to qemu. Use with > > care as the syscall numbers aren't finalized yet. > > > > If someone of the BSD folks is interested it should be trivial to tie this up > > for the preadv/pwritev syscalls that have been around there for a while. > > At least OpenBSD has preadv & pwritev. NetBSD also. But I don't have setup of either one, so I'll need some help on that front. > I'd add a check to configure to see if preadv exist and then define > HAVE_PREADV. Though it's not possible to see if the kernel supports > preadv if libc support does not exist (checking features by running > programs breaks cross compilation). The way glibc does it is only enable it if the underlying interface exists, and then have another shortcut if it exists in the headers but isn't supported by the underlying kernel. That's what I'll try to implement.