Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ng0Ys-0003t5-Dx for qemu-devel@nongnu.org; Fri, 12 Feb 2010 13:48:18 -0500 Received: from [199.232.76.173] (port=52960 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ng0Yr-0003sh-Tv for qemu-devel@nongnu.org; Fri, 12 Feb 2010 13:48:17 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ng0Yq-00037t-KD for qemu-devel@nongnu.org; Fri, 12 Feb 2010 13:48:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35156) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ng0Yq-00037p-6a for qemu-devel@nongnu.org; Fri, 12 Feb 2010 13:48:16 -0500 Date: Fri, 12 Feb 2010 18:47:55 +0000 From: "Richard W.M. Jones" Subject: Re: [Qemu-devel] Heads up: glibc preadv emulation breaks qemu on older kernels Message-ID: <20100212184755.GQ10004@amd.home.annexia.org> References: <20100211190608.GA26410@amd.home.annexia.org> <20100212125238.GA22221@lst.de> <20100212135044.GA24209@lst.de> <4B758FD9.2010807@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B758FD9.2010807@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Christoph Hellwig , qemu-devel@nongnu.org On Fri, Feb 12, 2010 at 11:28:57AM -0600, Anthony Liguori wrote: > I think a configure option would be in order. Forever avoiding glibc is > probably a bit extreme. I think a configure option won't work. The issue here was that the binary is being installed on a machine with an older kernel. Unfortunately it's pretty hard to test this at runtime too (preadv doesn't return ENOSYS, and there isn't really a good way to test if the preadv "syscall" is broken because the randomly aligned buffer might be aligned OK). I don't think there's a good solution for this at the qemu level. However I have a working patch for glibc: https://bugzilla.redhat.com/show_bug.cgi?id=563103#c13 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/