libvirt/tests/bhyvexml2xmloutdata
Roman Bogorodskiy 803966c76d bhyve: fix SATA address allocation
As bhyve for a long time didn't have a notion of the explicit SATA
controller and created a controller for each drive, the bhyve driver
in libvirt acted in a similar way and didn't care about the SATA
controllers and assigned PCI addresses to drives directly, as
the generated command will look like this anyway:

 2:0,ahci-hd,somedisk.img

This no longer makes sense because:

 1. After commit c07d1c1c4f it's not possible to assign
    PCI addresses to disks
 2. Bhyve now supports multiple disk drives for a controller,
    so it's going away from 1:1 controller:disk mapping, so
    the controller object starts to make more sense now

So, this patch does the following:

 - Assign PCI address to SATA controllers (previously we didn't do this)
 - Assign disk addresses instead of PCI addresses for disks. Now, when
   building a bhyve command, we take PCI address not from the disk
   itself but from its controller
 - Assign addresses at XML parsing time using the
   assignAddressesCallback. This is done mainly for being able to
   verify address allocation via xml2xml tests
 - Adjust existing bhyvexml2{xml,argv} tests to chase the new
   address allocation

This patch is largely based on work of Fabian Freyer.
2017-01-30 20:48:42 +04:00
..
bhyvexml2xmlout-acpiapic.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-base.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-bhyveload-bootorder1.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-bhyveload-bootorder2.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-bhyveload-bootorder3.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-bhyveload-bootorder4.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-bhyveload-bootorder.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-bhyveload-explicitargs.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-console.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-custom-loader.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-disk-cdrom-grub.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-disk-cdrom.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-disk-virtio.xml bhyve: add virBhyveDriverCreateXMLConf 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-grub-bootorder2.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-grub-bootorder.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-grub-defaults.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-localtime.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-macaddr.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-metadata.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-serial-grub-nocons.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-serial-grub.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00
bhyvexml2xmlout-serial.xml bhyve: fix SATA address allocation 2017-01-30 20:48:42 +04:00