From: Antoine Martin Subject: Re: raw disks no longer work in latest kvm (kvm-88 was fine) [SOLVED] Date: Mon, 08 Mar 2010 01:43:08 +0700 Message-ID: <4B93F3BC.9070509@nagafix.co.uk> References: <4B932829.8090503@nagafix.co.uk> <4B9372B6.3050408@msgid.tls.msk.ru> <20100307100022.GA23201@infradead.org> <4B93A624.8010707@nagafix.co.uk> <4B93AF8A.3070805@nagafix.co.uk> <4B93C2F9.7030904@msgid.tls.msk.ru> <4B93DE3F.4090103@nagafix.co.uk> <4B93DFF0.5050905@redhat.com> <20100307172151.GA24859@infradead.org> <4B93E29E.6090609@redhat.com> <20100307173406.GA3756@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Christoph Hellwig , kvm@vger.kernel.org Return-path: Received: from mamba.nagafix.co.uk ([194.145.196.68]:33873 "EHLO mail.nagafix.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754583Ab0CGSnO (ORCPT ); Sun, 7 Mar 2010 13:43:14 -0500 In-Reply-To: <20100307173406.GA3756@infradead.org> Sender: kvm-owner@vger.kernel.org List-ID: On 03/08/2010 12:34 AM, Christoph Hellwig wrote: > On Sun, Mar 07, 2010 at 07:30:06PM +0200, Avi Kivity wrote: > >> It may also be that glibc is emulating preadv, incorrectly. >> > I've done a quick audit of all pathes leading to pread and all seem > to align correctly. So either a broken glibc emulation or something > else outside the block layer seems likely. > > >> Antoine, can you check this? ltrace may help, or run 'strings libc.so | >> grep pread'. >> > Or just add an > > #undef CONFIG_PREADV > > just before the first > > #ifdef CONFIG_PREADV > > in posix-aio-compat.c and see if that works. > It does indeed! qemu-kvm-0.12.3 is now seeing my partition again. woohoo! So, PREAD makes it break... how, where? What does this mean? Thanks a lot! Antoine