qcow2: Set MIN_L2_CACHE_SIZE to 2
authorMax Reitz <mreitz@redhat.com>
Mon, 1 Jun 2015 16:09:17 +0000 (18:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Jun 2015 13:54:00 +0000 (15:54 +0200)
commit57e216695948a79d9ced82fc217a37cce70fd986
treeacb4be45e3f02865206410239b5424b2fcb21bf6
parent9aa711d75030356f1e179b9f71780da5fd1a45bb
qcow2: Set MIN_L2_CACHE_SIZE to 2

The L2 cache must cover at least two L2 tables, because during COW two
L2 tables are accessed simultaneously.

Reported-by: Alexander Graf <agraf@suse.de>
Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Tested-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.h