From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzSIA-0004rT-13 for qemu-devel@nongnu.org; Mon, 01 Jun 2015 12:10:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzSI9-0006OY-79 for qemu-devel@nongnu.org; Mon, 01 Jun 2015 12:10:21 -0400 Message-ID: <556C83E4.4000301@redhat.com> Date: Mon, 01 Jun 2015 18:10:12 +0200 From: Max Reitz MIME-Version: 1.0 References: <1433174959-7176-1-git-send-email-mreitz@redhat.com> <1433174959-7176-2-git-send-email-mreitz@redhat.com> In-Reply-To: <1433174959-7176-2-git-send-email-mreitz@redhat.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3] qcow2: Set MIN_L2_CACHE_SIZE to 2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: Kevin Wolf , qemu-stable@nongnu.org, Alberto Garcia , qemu-devel@nongnu.org, Alexander Graf On 01.06.2015 18:09, Max Reitz wrote: > The L2 cache must cover at least two L2 tables, because during COW two > L2 tables are accessed simultaneously. > > Reported-by: Alexander Graf > Cc: qemu-stable > Signed-off-by: Max Reitz > --- > block/qcow2.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/block/qcow2.h b/block/qcow2.h > index 0076512..aa20022 100644 > --- a/block/qcow2.h > +++ b/block/qcow2.h > @@ -62,7 +62,8 @@ > #define MIN_CLUSTER_BITS 9 > #define MAX_CLUSTER_BITS 21 > > -#define MIN_L2_CACHE_SIZE 1 /* cluster */ > +/* Must be at least 2 to cover COW */ > +#define MIN_L2_CACHE_SIZE 2 /* clusters */ > > /* Must be at least 4 to cover all cases of refcount table growth */ > #define MIN_REFCOUNT_CACHE_SIZE 4 /* clusters */ Of course git send-email ignored the qemu-stable line... CC-ing manually. Max