- Fix qemu2 cow caching (bsc#933132)
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=263
This commit is contained in:
parent
dabf968c5f
commit
79ce9ccd40
31
0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
Normal file
31
0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From 85bd20ed57493f867626fd7d5fa073b4476ae301 Mon Sep 17 00:00:00 2001
|
||||
From: Max Reitz <mreitz@redhat.com>
|
||||
Date: Mon, 1 Jun 2015 18:09:17 +0200
|
||||
Subject: [PATCH] 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>
|
||||
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: Alexander Graf <agraf@suse.de>
|
||||
---
|
||||
block/qcow2.h | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/block/qcow2.h b/block/qcow2.h
|
||||
index 422b825..2f20949 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 */
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 1 21:52:44 UTC 2015 - agraf@suse.com
|
||||
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-2.3
|
||||
* Patches added:
|
||||
0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 18:11:43 UTC 2015 - jslaby@suse.com
|
||||
|
||||
|
@ -67,6 +67,7 @@ Patch0039: 0039-s390x-Fix-stoc-direction.patch
|
||||
Patch0040: 0040-s390x-Add-interlocked-access-facili.patch
|
||||
Patch0041: 0041-fdc-force-the-fifo-access-to-be-in-.patch
|
||||
Patch0042: 0042-rules.mak-Force-CFLAGS-for-all-obje.patch
|
||||
Patch0043: 0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
# Please do not add patches manually here, run update_git.sh.
|
||||
# this is to make lint happy
|
||||
Source300: qemu-rpmlintrc
|
||||
@ -168,6 +169,7 @@ This sub-package contains development files for the Smartcard library.
|
||||
%patch0040 -p1
|
||||
%patch0041 -p1
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
|
||||
%build
|
||||
./configure --prefix=%_prefix --sysconfdir=%_sysconfdir \
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 1 21:52:41 UTC 2015 - agraf@suse.com
|
||||
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-2.3
|
||||
* Patches added:
|
||||
0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 18:11:37 UTC 2015 - jslaby@suse.com
|
||||
|
||||
|
@ -67,6 +67,7 @@ Patch0039: 0039-s390x-Fix-stoc-direction.patch
|
||||
Patch0040: 0040-s390x-Add-interlocked-access-facili.patch
|
||||
Patch0041: 0041-fdc-force-the-fifo-access-to-be-in-.patch
|
||||
Patch0042: 0042-rules.mak-Force-CFLAGS-for-all-obje.patch
|
||||
Patch0043: 0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
# Please do not add patches manually here, run update_git.sh.
|
||||
# this is to make lint happy
|
||||
Source300: qemu-rpmlintrc
|
||||
@ -162,6 +163,7 @@ run cross-architecture builds.
|
||||
%patch0040 -p1
|
||||
%patch0041 -p1
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
|
||||
%build
|
||||
./configure --prefix=%_prefix --sysconfdir=%_sysconfdir \
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 1 21:52:37 UTC 2015 - agraf@suse.com
|
||||
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-2.3
|
||||
* Patches added:
|
||||
0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 18:11:31 UTC 2015 - jslaby@suse.com
|
||||
|
||||
|
@ -98,6 +98,7 @@ Patch0039: 0039-s390x-Fix-stoc-direction.patch
|
||||
Patch0040: 0040-s390x-Add-interlocked-access-facili.patch
|
||||
Patch0041: 0041-fdc-force-the-fifo-access-to-be-in-.patch
|
||||
Patch0042: 0042-rules.mak-Force-CFLAGS-for-all-obje.patch
|
||||
Patch0043: 0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
# Please do not add QEMU patches manually here.
|
||||
# Run update_git.sh to regenerate this queue.
|
||||
|
||||
@ -602,6 +603,7 @@ This package provides a service file for starting and stopping KSM.
|
||||
%patch0040 -p1
|
||||
%patch0041 -p1
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
|
||||
%if %{build_x86_fw_from_source}
|
||||
pushd roms/seabios
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 1 21:52:37 UTC 2015 - agraf@suse.com
|
||||
|
||||
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-2.3
|
||||
- Fix qemu2 cow caching (bsc#933132)
|
||||
* Patches added:
|
||||
0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 18:11:31 UTC 2015 - jslaby@suse.com
|
||||
|
||||
|
@ -98,6 +98,7 @@ Patch0039: 0039-s390x-Fix-stoc-direction.patch
|
||||
Patch0040: 0040-s390x-Add-interlocked-access-facili.patch
|
||||
Patch0041: 0041-fdc-force-the-fifo-access-to-be-in-.patch
|
||||
Patch0042: 0042-rules.mak-Force-CFLAGS-for-all-obje.patch
|
||||
Patch0043: 0043-qcow2-Set-MIN_L2_CACHE_SIZE-to-2.patch
|
||||
# Please do not add QEMU patches manually here.
|
||||
# Run update_git.sh to regenerate this queue.
|
||||
|
||||
@ -602,6 +603,7 @@ This package provides a service file for starting and stopping KSM.
|
||||
%patch0040 -p1
|
||||
%patch0041 -p1
|
||||
%patch0042 -p1
|
||||
%patch0043 -p1
|
||||
|
||||
%if %{build_x86_fw_from_source}
|
||||
pushd roms/seabios
|
||||
|
Loading…
Reference in New Issue
Block a user