[libvirt] [PATCH] bhyve: fix disks address allocation

Roman Bogorodskiy bogorodskiy at gmail.com
Mon Aug 29 06:53:14 UTC 2016


  Laine Stump wrote:

> On 08/28/2016 08:45 AM, Roman Bogorodskiy wrote:
> > 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 not implemented in the bhyve
> 
> s/not//   :-)
> 
> > driver, force each disk to have PCI address generated if it was not
> > specified by user.
> > ---
> >   src/bhyve/bhyve_device.c | 3 ++-
> >   1 file changed, 2 insertions(+), 1 deletion(-)
> >
> 
> ACK.

Pushed with the commit message fixed, thanks! 

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160829/06ae5f30/attachment-0001.sig>


More information about the libvir-list mailing list