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>
(cherry picked from commit 57e2166959
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
@@ -62,7 +62,8 @@
|
|||||||
#define MIN_CLUSTER_BITS 9
|
#define MIN_CLUSTER_BITS 9
|
||||||
#define MAX_CLUSTER_BITS 21
|
#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 */
|
/* Must be at least 4 to cover all cases of refcount table growth */
|
||||||
#define MIN_REFCOUNT_CACHE_SIZE 4 /* clusters */
|
#define MIN_REFCOUNT_CACHE_SIZE 4 /* clusters */
|
||||||
|
Reference in New Issue
Block a user