From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw5JA-0003fb-1t for qemu-devel@nongnu.org; Fri, 29 Apr 2016 06:06:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw5J2-0005Y7-H8 for qemu-devel@nongnu.org; Fri, 29 Apr 2016 06:05:58 -0400 Date: Fri, 29 Apr 2016 11:57:54 +0200 From: Kevin Wolf Message-ID: <20160429095754.GC4350@noname.redhat.com> References: <1461849406-29743-1-git-send-email-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461849406-29743-1-git-send-email-kwolf@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 00/17] block: Convert .bdrv_read/write to .bdrv_preadv/pwritev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: mreitz@redhat.com, stefanha@redhat.com, famz@redhat.com, sw@weilnetz.de, qemu-devel@nongnu.org Am 28.04.2016 um 15:16 hat Kevin Wolf geschrieben: > This series introduces a new BlockDriver interface, which will hopefully be the > final one, or at least good enough for another few years: .bdrv_preadv/pwritev. > It is based on coroutines, vectored, has flags and uses a byte granularity. > This is now the preferred interface for new drivers. > > All drivers still using the legacy interface .bdrv_read/write are converted to > the new interface and the emulation code we had for the old interface is > removed. Most of the drivers become zero-copy with these patches as they are > vectored now; only vvfat continues to allocate a bounce buffer. > > The less obscure formats (vmdk, vdi, vpc) also natively support byte-aligned > requests now. The block layer is still enforcing a minimal alignment of 512, so > this isn't actually used yet, but in a next step, we can lift this restriction > for drivers that implement .bdrv_preadv/pwritev. Applied to block-next. Kevin