From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: kvm-85: virtio-blk not working Date: Thu, 23 Apr 2009 12:47:02 -0500 Message-ID: <49F0A996.6000203@codemonkey.ws> References: <200904231043.05001.gerd.von.egidy@intra2net.com> <200904231110.47416.iggy@theiggy.com> <49F093BE.9030601@codemonkey.ws> <20090423162458.GQ5372@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Brian Jackson , "Gerd v. Egidy" , kvm@vger.kernel.org To: "Daniel P. Berrange" Return-path: Received: from rv-out-0506.google.com ([209.85.198.235]:45547 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbZDWRrh (ORCPT ); Thu, 23 Apr 2009 13:47:37 -0400 Received: by rv-out-0506.google.com with SMTP id f9so611879rvb.1 for ; Thu, 23 Apr 2009 10:47:36 -0700 (PDT) In-Reply-To: <20090423162458.GQ5372@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Daniel P. Berrange wrote: > On Thu, Apr 23, 2009 at 11:13:50AM -0500, Anthony Liguori wrote: > >> Brian Jackson wrote: >> >>> Your problem is that index's are per interface type, so both of your >>> drives should be index=0 since they are different interface types. >>> >>> >> More specifically, with virtio-blk, you cannot have discontinuous >> indexes. In other words, having index=0, index=1, index=2 is valid, >> but having index=1, index=2, index=4 is not. >> > > Is that restriction going to work with migration ? > > eg, you have a VM with 3 disks. vda, vdb, vdc (index=0, index=1 and index=2). > You then hot-unplug the 2nd disk, vdb (index=1). Now migrate the guest to > another machine. I believe you now need to be able to start qemu on the target > host with -incoming and index=0 and index=2, but no index=1 because that > disk was unplugged. So the indexes would be discontinuous now > index doesn't have meaning with virtio-blk. Each disk is dedicated to a PCI slot. To support migration with hotplug, you need to specify the PCI bus address when creating the virtio-blk device. Regards, Anthony Liguori