qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] qcow2: Write complete sectors
@ 2009-06-16  9:31 Kevin Wolf
  2009-06-16  9:31 ` [Qemu-devel] [PATCH 1/3] l2_allocate: " Kevin Wolf
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Kevin Wolf @ 2009-06-16  9:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf

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(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-06-16 10:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-16  9:31 [Qemu-devel] [PATCH 0/3] qcow2: Write complete sectors Kevin Wolf
2009-06-16  9:31 ` [Qemu-devel] [PATCH 1/3] l2_allocate: " Kevin Wolf
2009-06-16  9:31 ` [Qemu-devel] [PATCH 2/3] alloc_cluster_link_l2: " Kevin Wolf
2009-06-16  9:31 ` [Qemu-devel] [PATCH 3/3] update_refcount: " Kevin Wolf
2009-06-16 10:03 ` [Qemu-devel] [PATCH 0/3] qcow2: " Dor Laor
2009-06-16 10:15   ` Kevin Wolf
2009-06-16 10:06 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).