]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: fix disks address allocation
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 28 Aug 2016 12:45:08 +0000 (15:45 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 29 Aug 2016 06:37:06 +0000 (09:37 +0300)
commit25ee22bdbc48aa4f25d0e1d80383d73cbe18c2a2
tree2ea9206802e57b9978fe6a63841c6ec45148006a
parent67af358d119bed1f50a81f0c826ccaf704a2a085
bhyve: fix disks address allocation

As bhyve currently doesn't use controller addressing and simply
uses 1 implicit controller for 1 disk device, the scheme looks the
following:

 pci addrees -> (implicit controller) -> disk device

So in fact we identify disk devices by pci address of implicit
controller and just pass it this way to bhyve in a form:

 -s pci_addr,ahci-(cd|hd),/path/to/disk

Therefore, we cannot use virDeviceInfoPCIAddressWanted() because it
does not expect that disk devices might need PCI address assignment.

As a result, if a disk was specified without address, it will not be
generated and domain will to start.

Until proper controller addressing is implemented in the bhyve
driver, force each disk to have PCI address generated if it was not
specified by user.
src/bhyve/bhyve_device.c