Skip to content

qcow2: Write complete sectors

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3l2_allocate: Write complete sectorsblock/qcow2-cluster.c+28 -50 replies
2/3alloc_cluster_link_l2: Write complete sectorsblock/qcow2-cluster.c+25 -30 replies
3/3update_refcount: Write complete sectorsblock/qcow2-refcount.c+26 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qcow2: Write complete sectors

Once upon a time, there was a bdrv_pwrite that actually wrote single bytes to the file... However, today it is emulated by a read-modify-write cycle which aligns the request to sector size. This is slow. And we don't need it: qcow2 often has the complete sector in memory, we don't need to read it from the disk again.

These patches change the writes to L1 tables, L2 tables and refcount blocks to write complete sectors instead of single entries.

This series depends on the qcow2 split to apply cleanly.

Kevin Wolf (3):
l2_allocate: Write complete sectors
alloc_cluster_link_l2: Write complete sectors
update_refcount: Write complete sectors

 block/qcow2-cluster.c  |   61 +++++++++++++++++++++++++++++++++++++++++------
 block/qcow2-refcount.c |   34 ++++++++++++++++++++------
 2 files changed, 79 insertions(+), 16 deletions(-)