From: Dustin Kirkland <dustin.kirkland@gmail.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: libvir-list@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [libvirt] dynamic scsi disk attach seems to be broken in qemu(-kvm)-0.11, libvirt-0.7.1
Date: Fri, 9 Oct 2009 10:38:17 -0500 [thread overview]
Message-ID: <d9c105ea0910090838i2df2961djba9d8db4bde03e13@mail.gmail.com> (raw)
In-Reply-To: <20091009081822.GB27937@redhat.com>
On Fri, Oct 9, 2009 at 3:18 AM, Daniel P. Berrange <berrange@redhat.com> wrote:
> On Thu, Oct 08, 2009 at 10:57:55PM -0500, Dustin Kirkland wrote:
>> Now, all of that said, it is actually possible to hot-add a second
>> scsi device. However, as far as I can tell, this method is not yet
>> supported by libvirt. It looks to me that with modern qemu, you have
>> to do it this way:
>>
>> Drop to a qemu console with ctrl-alt-2. Get the address of the current scsi bus:
>> (qemu) info pci
>> Look for "SCSI Controller". In my case, it's on Bus 0, device 4, function 0
>>
>> Now instead of pci_add, use drive_add
>> (qemu) drive_add 0:4 file=/tmp/foo,if=scsi
>> OK bus 0, unit 1
>
> That is correct - the SCSI driver hotplug in libvirt is not implemented
> in the right way. If you specify multiple SCSI devices at boot, they
> all get on one controller, if you hotplug multiple SCSI devices, we're
> hotplugging a new SCSI controller per disk. This is clearly not good,
> because when you then reboot, all those controllers are merged back into
> one.
Okay, in our previous usage of this, rebooting didn't matter very much.
> There is a guy who is working on implementing the correct SCSI hotplug
> approach for libvirt, that is still work in progress though. The most
> recent patches were here:
>
> http://www.redhat.com/archives/libvir-list/2009-September/msg00551.html
>
> We will ultimately support hotplug of both drives, and drive controllers
> independantly, giving apps/users the flexibility they need.
Thanks. I'll track those patches with interest.
:-Dustin
prev parent reply other threads:[~2009-10-09 15:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 3:57 [Qemu-devel] dynamic scsi disk attach seems to be broken in qemu(-kvm)-0.11, libvirt-0.7.1 Dustin Kirkland
2009-10-09 8:18 ` [Qemu-devel] Re: [libvirt] " Daniel P. Berrange
2009-10-09 14:38 ` Anthony Liguori
2009-10-09 15:27 ` Dustin Kirkland
2009-10-09 15:38 ` Dustin Kirkland [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d9c105ea0910090838i2df2961djba9d8db4bde03e13@mail.gmail.com \
--to=dustin.kirkland@gmail.com \
--cc=berrange@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=libvir-list@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).