From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiqGD-0003q5-J3 for qemu-devel@nongnu.org; Sun, 15 Mar 2009 09:20:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiqG9-0003p5-Im for qemu-devel@nongnu.org; Sun, 15 Mar 2009 09:20:13 -0400 Received: from [199.232.76.173] (port=46600 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiqG9-0003p2-DE for qemu-devel@nongnu.org; Sun, 15 Mar 2009 09:20:09 -0400 Received: from yw-out-1718.google.com ([74.125.46.153]:59252) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiqG9-0006ZL-1P for qemu-devel@nongnu.org; Sun, 15 Mar 2009 09:20:09 -0400 Received: by yw-out-1718.google.com with SMTP id 6so482036ywa.82 for ; Sun, 15 Mar 2009 06:20:05 -0700 (PDT) Message-ID: <49BD0080.6050709@codemonkey.ws> Date: Sun, 15 Mar 2009 08:20:00 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/6] change vectored block I/O API to plain iovecs References: <20090314192701.GA3497@lst.de> <20090314192828.GB3717@lst.de> <49BCF79D.8050103@redhat.com> In-Reply-To: <49BCF79D.8050103@redhat.com> 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: qemu-devel@nongnu.org Avi Kivity wrote: > Christoph Hellwig wrote: >> QEMUIOVector is a useful helper for the dma-helper.c internals but >> for a generic >> block API it's more of hindrance. Some top-level consumers like >> virtio-blk >> already have the plain iovec and segment number at hand and can pass >> it down >> directly, and for those that just have a single element and need to >> fake up >> a vector the plain iovec also is a lot easier. >> > > virtio gets its iovecs through a hacky (and incorrect, try >=4G) > method. IMO virtio should be fixed to use the dma api, at which point > it will start to use QEMUIOVector anyway, >= 4GB should work fine in virtio. It basically replicates the DMA API today. It doesn't handle MMIO memory though. >> Last but not leas we want to push down vectored I/O to the lowest level, >> and if posix-aio-compat.c wants to stay somewhat true to it's goal of >> beeing like an ehanced posix AIO API it should stick to posix types. >> > > Internally yes, but why should bdrv_* not use QEMUIOVector? That API > isn't very interested in posix. Agreed. Regards, Anthony Liguori