From: Antoine Martin Subject: Re: raw disks no longer work in latest kvm (kvm-88 was fine) Date: Sat, 29 May 2010 16:42:59 +0700 Message-ID: <4C00E1A3.50109@nagafix.co.uk> References: <4B92BF97.4040001@nagafix.co.uk> <4BF7BD33.2090700@msgid.tls.msk.ru> <4BF7C172.2000508@nagafix.co.uk> <4BF8ED0C.2070004@nagafix.co.uk> <4BF91844.8030903@redhat.com> <4BF936BB.5000401@nagafix.co.uk> <4BF9391A.1080302@redhat.com> <4BF93EF5.5090106@nagafix.co.uk> <4BF945E4.8080209@redhat.com> <4BF9554D.3000100@nagafix.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Michael Tokarev , Christoph Hellwig , kvm@vger.kernel.org To: Stefan Hajnoczi Return-path: Received: from mamba.nagafix.co.uk ([194.145.196.68]:43703 "EHLO mail.nagafix.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754907Ab0E2JnI (ORCPT ); Sat, 29 May 2010 05:43:08 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 05/24/2010 12:47 AM, Stefan Hajnoczi wrote: > On Sun, May 23, 2010 at 5:18 PM, Antoine Martin wrote: >> Why does it work in a chroot for the other options (aio=native, if=ide, etc) >> but not for aio!=native?? >> Looks like I am misunderstanding the semantics of chroot... > > It might not be the chroot() semantics but the environment inside that > chroot, like the glibc. Have you compared strace inside and outside > the chroot? Reverting to a static build also fixes the issue: aio=threads works. Definitely something fishy going on with glibc library loading. (I've checked glibc, libaio were up to date in the chroot - nothing blatant in the strace) Can someone explain the aio options? All I can find is this: # qemu-system-x86_64 -h | grep -i aio [,addr=A][,id=name][,aio=threads|native] I assume it means the aio=threads emulates the kernel's aio with separate threads? And is therefore likely to be slower, right? Is there a reason why aio=native is not the default? Shouldn't aio=threads be the fallback? Cheers Antoine > > Stefan > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html