All of lore.kernel.org
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
	Alberto Garcia <berto@igalia.com>,
	qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>
Subject: [Qemu-devel] [PATCH 0/3] qcow2: Fix MIN_L2_CACHE_SIZE
Date: Mon,  1 Jun 2015 18:09:16 +0200	[thread overview]
Message-ID: <1433174959-7176-1-git-send-email-mreitz@redhat.com> (raw)

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

-- 
2.4.1

             reply	other threads:[~2015-06-01 16:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-01 16:09 Max Reitz [this message]
2015-06-01 16:09 ` [Qemu-devel] [PATCH 1/3] qcow2: Set MIN_L2_CACHE_SIZE to 2 Max Reitz
2015-06-01 16:10   ` Max Reitz
2015-06-01 16:12   ` Alexander Graf
2015-06-01 16:14   ` Alberto Garcia
2015-06-01 16:09 ` [Qemu-devel] [PATCH 2/3] iotests: qcow2 COW with minimal L2 cache size Max Reitz
2015-06-01 17:01   ` Alberto Garcia
2015-06-01 16:09 ` [Qemu-devel] [PATCH 3/3] qcow2: Add DEFAULT_L2_CACHE_CLUSTERS Max Reitz
2015-06-01 17:16   ` Alberto Garcia
2015-06-02  9:31 ` [Qemu-devel] [PATCH 0/3] qcow2: Fix MIN_L2_CACHE_SIZE Kevin Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433174959-7176-1-git-send-email-mreitz@redhat.com \
    --to=mreitz@redhat.com \
    --cc=agraf@suse.de \
    --cc=berto@igalia.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.