From: Christoph Hellwig Subject: Re: raw disks no longer work in latest kvm (kvm-88 was fine) Date: Sat, 29 May 2010 06:34:17 -0400 Message-ID: <20100529103417.GA16311@infradead.org> References: <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> <4C00E1A3.50109@nagafix.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Stefan Hajnoczi , Avi Kivity , Michael Tokarev , Christoph Hellwig , kvm@vger.kernel.org To: Antoine Martin Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:47455 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752982Ab0E2Ke3 (ORCPT ); Sat, 29 May 2010 06:34:29 -0400 Content-Disposition: inline In-Reply-To: <4C00E1A3.50109@nagafix.co.uk> Sender: kvm-owner@vger.kernel.org List-ID: On Sat, May 29, 2010 at 04:42:59PM +0700, Antoine Martin wrote: > 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? The kernel AIO support is unfortunately not a very generic API. It only supports O_DIRECT I/O (cache=none for qemu), and if used on a filesystems it might still block if we need to perform block allocations. We could probably make it the default for block devices, but I'm not a big fan of these kind of conditional defaults.