From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9vzz-0001mN-PE for qemu-devel@nongnu.org; Mon, 06 Jun 2016 10:59:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9vzx-0002rV-Up for qemu-devel@nongnu.org; Mon, 06 Jun 2016 10:59:26 -0400 From: Kevin Wolf Date: Mon, 6 Jun 2016 16:59:10 +0200 Message-Id: <1465225155-18661-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5] qcow2: Implement .bdrv_co_preadv/pwritev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, jsnow@redhat.com, eblake@redhat.com, qemu-devel@nongnu.org This series converts qcow2 to the byte-based I/O interfaces. This simplifies the code by removing many unit conversions, and in the unlikely case of actual unaligned requests, it even makes the driver work more efficiently by avoiding read-modify-write. v2: - Be more careful with integer overflows [Eric] - Updated some more comments [Eric] - Rename copy_sectors -> do_perform_cow [Eric] - Write single byte instead of full sector at preallocation end [Eric] Kevin Wolf (5): qcow2: Work with bytes in qcow2_get_cluster_offset() qcow2: Implement .bdrv_co_preadv() qcow2: Make copy_sectors() byte based qcow2: Use bytes instead of sectors for QCowL2Meta qcow2: Implement .bdrv_co_pwritev() block/qcow2-cluster.c | 146 +++++++++++++++++-------------------- block/qcow2.c | 197 +++++++++++++++++++++++++------------------------- block/qcow2.h | 18 ++--- trace-events | 6 +- 4 files changed, 176 insertions(+), 191 deletions(-) -- 1.8.3.1