From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfeMj-000396-Nu for qemu-devel@nongnu.org; Thu, 11 Feb 2010 14:06:17 -0500 Received: from [199.232.76.173] (port=50896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfeMj-00038k-3v for qemu-devel@nongnu.org; Thu, 11 Feb 2010 14:06:17 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfeMf-0003Kl-OI for qemu-devel@nongnu.org; Thu, 11 Feb 2010 14:06:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9769) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfeMe-0003KL-C6 for qemu-devel@nongnu.org; Thu, 11 Feb 2010 14:06:13 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1BJ6ANm023960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Feb 2010 14:06:10 -0500 Received: from localhost (vpn2-10-15.ams2.redhat.com [10.36.10.15]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1BJ69Ra003865 for ; Thu, 11 Feb 2010 14:06:10 -0500 Date: Thu, 11 Feb 2010 19:06:08 +0000 From: "Richard W.M. Jones" Message-ID: <20100211190608.GA26410@amd.home.annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Heads up: glibc preadv emulation breaks qemu on older kernels List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This isn't a problem with qemu as such, but it may affect you if you use qemu with a newer glibc on a Linux kernel which does not support the preadv(2) syscall natively. glibc will attempt to emulate preadv(2) using pread(2) syscalls, but it doesn't align the user buffer when it does this, and that can break things (if using cache=off then the file is opened with O_DIRECT which has strict alignment requirements). The user visible effect of this bug is that blocks devices (of all types) inside the guest throw large numbers of I/O errors. https://bugzilla.redhat.com/show_bug.cgi?id=563103#c8 One interesting thing is that qemu has its own preadv emulation (which does the emulation correctly), but this is never used because qemu never gets ENOSYS back from preadv. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora