Skip to content

qcow2: Implement .bdrv_co_preadv/pwritev

Kevin Wolf qemu-devel 2 versions – Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 7 repliesApplied
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- 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]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5qcow2: Work with bytes in qcow2_get_cluster_offset()block/qcow2-cluster.c+23 -211 reply
2/5qcow2: Implement .bdrv_co_preadv()block/qcow2-cluster.c block/qcow2.c block/qcow2.h+72 -651 reply
3/5qcow2: Make copy_sectors() byte basedblock/qcow2-cluster.c+26 -284 replies
4/5qcow2: Use bytes instead of sectors for QCowL2Metablock/qcow2-cluster.c block/qcow2.h+15 -301 reply
5/5qcow2: Implement .bdrv_co_pwritev()block/qcow2-cluster.c block/qcow2.c block/qcow2.h +1 more+52 -591 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] qcow2: Implement .bdrv_co_preadv/pwritev

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(-)
Signature · 1 line
1.8.3.1