From: Antoine Martin Subject: Re: raw disks no longer work in latest kvm (kvm-88 was fine) Date: Sun, 07 Mar 2010 20:52:10 +0700 Message-ID: <4B93AF8A.3070805@nagafix.co.uk> References: <4B92BF97.4040001@nagafix.co.uk> <4B92C90B.4030807@msgid.tls.msk.ru> <4B932829.8090503@nagafix.co.uk> <4B9372B6.3050408@msgid.tls.msk.ru> <20100307100022.GA23201@infradead.org> <4B93A624.8010707@nagafix.co.uk> 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]:45463 "EHLO mail.nagafix.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753137Ab0CGNwQ (ORCPT ); Sun, 7 Mar 2010 08:52:16 -0500 In-Reply-To: <4B93A624.8010707@nagafix.co.uk> Sender: kvm-owner@vger.kernel.org List-ID: [snip] > > So there is something else at play. And just for the record: > 1) kvm-88 works fine *with the exact same setup* > 2) I've tried running as root > 3) The raw disk mounts fine from the host. > So I *know* the problem is with kvm. I wouldn't post to the list > without triple checking that. > > I have also just tested with another raw partition which is much > smaller (1GB) and the same thing still occurs: kvm-88 works and > qemu-kvm-0.12.3 does not. > So I think that it is fair to assume that this new problem is > unrelated to the partition size. I have narrowed it down to the "io-thread" option: * rebuilding older versions of qemu without "--enable-io-thread" causes the bug (guest cannot open raw partition) * qemu-kvm-0.12.3 cannot be built with "--enable-io-thread" over here: LINK x86_64-softmmu/qemu-system-x86_64 kvm-all.o: In function `qemu_mutex_lock_iothread': /usr/src/KVM/qemu-kvm-0.12.3/qemu-kvm.c:2532: multiple definition of `qemu_mutex_lock_iothread' vl.o:/usr/src/KVM/qemu-kvm-0.12.3/vl.c:3772: first defined here [..] Which I have reported as part of another unsolved issue here: http://www.mail-archive.com/kvm@vger.kernel.org/msg27663.html Why not using the io-thread would prevent qemu from opening the raw partition is beyond me. Antoine