Skip to content

qcow2: Fix MIN_L2_CACHE_SIZE

Max Reitz qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3qcow2: Set MIN_L2_CACHE_SIZE to 2block/qcow2.h+2 -13 replies
2/3iotests: qcow2 COW with minimal L2 cache sizetests/qemu-iotests/103 tests/qemu-iotests/103.out+15 -01 reply
3/3qcow2: Add DEFAULT_L2_CACHE_CLUSTERSblock/qcow2.c block/qcow2.h+10 -31 reply

Reviews trailers per patch

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

PatchAlexander GrafAlberto Garcia
1/3T-b R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] qcow2: Fix MIN_L2_CACHE_SIZE

This series fixes MIN_L2_CACHE_SIZE (which should not be 1, but 2 (clusters)), and introduces a new constant, DEFAULT_L2_CACHE_CLUSTERS, so the default cache size is no longer always a fixed size in bytes but is also guaranteed to be able to hold a sane amount of L2 tables (which was determined to be 8 using the "proposal without protest" method).

So, in effect, after patch 3 of this series, the L2 cache (unless overridden by the user, of course) will either be 1 MB in size or be able to hold eight L2 tables, whichever is more.

Max Reitz (3):
qcow2: Set MIN_L2_CACHE_SIZE to 2
iotests: qcow2 COW with minimal L2 cache size
qcow2: Add DEFAULT_L2_CACHE_CLUSTERS

 block/qcow2.c              | 11 ++++++++---
 block/qcow2.h              |  5 ++++-
 tests/qemu-iotests/103     | 10 ++++++++++
 tests/qemu-iotests/103.out |  5 +++++
 4 files changed, 27 insertions(+), 4 deletions(-)
Signature · 1 line
2.4.1