diff --git a/qemu-disable-preadv-support.patch b/qemu-disable-preadv-support.patch new file mode 100644 index 0000000..2c255de --- /dev/null +++ b/qemu-disable-preadv-support.patch @@ -0,0 +1,31 @@ +From ef41d27fae62bbb71f3af60488b455582ee92625 Mon Sep 17 00:00:00 2001 +From: Mark McLoughlin +Date: Wed, 4 Nov 2009 12:29:35 -0500 +Subject: [PATCH] Disable preadv/pwritev support + +Workaround for a data corruptor issue on 32 bit hosts: + + https://bugzilla.redhat.com/526549 + +Signed-off-by: Mark McLoughlin +Fedora-patch: qemu-disable-preadv-support.patch +--- + posix-aio-compat.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/posix-aio-compat.c b/posix-aio-compat.c +index e9fc9fa..b116933 100644 +--- a/posix-aio-compat.c ++++ b/posix-aio-compat.c +@@ -34,7 +34,7 @@ static int idle_threads = 0; + static TAILQ_HEAD(, qemu_paiocb) request_list; + + #ifdef HAVE_PREADV +-static int preadv_present = 1; ++static int preadv_present = 0; + #else + static int preadv_present = 0; + #endif +-- +1.6.2.5 + diff --git a/qemu.spec b/qemu.spec index de3b84a..6878fc5 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1,7 +1,7 @@ Summary: QEMU is a FAST! processor emulator Name: qemu Version: 0.11.0 -Release: 10%{?dist} +Release: 11%{?dist} # Epoch because we pushed a qemu-1.0 package Epoch: 2 License: GPLv2+ and LGPLv2+ and BSD @@ -58,6 +58,9 @@ Patch11: qemu-properly-save-kvm-system-time-registers.patch # Fix dropped packets with non-virtio NICs (#531419) Patch12: qemu-fix-dropped-packets-with-non-virtio-nics.patch +# Temporarily disable preadv/pwritev support (#526549) +Patch13: qemu-disable-preadv-support.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel BuildRequires: rsync dev86 iasl @@ -257,6 +260,7 @@ such as kvmtrace and kvm_stat. %patch10 -p1 %patch11 -p1 %patch12 -p1 +%patch13 -p1 %build # --build-id option is used fedora 8 onwards for giving info to the debug packages. @@ -538,6 +542,9 @@ fi %{_mandir}/man1/qemu-img.1* %changelog +* Wed Nov 4 2009 Mark McLoughlin - 2:0.11.0-11 +- Temporarily disable preadv/pwritev support to fix data corruption (#526549) + * Tue Nov 3 2009 Justin M. Forbes - 2:0.11.0-10 - Default ksm and ksmtuned services on.