[libvirt] [PATCH 3/4] bhyve: multiple virtio-blk devices support

Daniel P. Berrange berrange at redhat.com
Thu Mar 20 12:03:32 UTC 2014


On Thu, Mar 20, 2014 at 09:39:22AM +0100, Wojciech Macek wrote:
> Add support for multiple virtio-blk devices. Current implementation
> offers room for up to 8 disks and enumerates them as functions on
> PCI bus: 2:0, 2:1 ... 2:7

Use of PCI functions should be avoided by default, since it prevents
you from supporting hotplug/unplug. You want virtio-blk devices to
be set on individual PCI slots instead, which allows upto 32 devices
in total (though VGA, host bridge & nic consume some of those).

Also we need to assign & track PCI addresses in the XML explicitly
so that upon migraton the addresses don't change. IOW, the bhyve
driver really needs to copy the qemuDomainAssignPCIAddresses code
in this area, and then honour the address info when building the
command line

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list