bhyve: add virBhyveDriverCreateXMLConf

Add virBhyveDriverCreateXMLConf, a simple wrapper around
virDomainXMLOptionNew that makes it easier to pass bhyveConnPtr
as a private data for parser. It will be used later for device
address allocation at parsing time.

Update consumers to use it instead of direct calls to
virDomainXMLOptionNew.

As we now have proper callbacks connected for the tests, update
test files accordingly to include the automatically generated
PCI root controller.
This commit is contained in:
Roman Bogorodskiy
2017-01-05 16:31:35 +04:00
parent 20a7737d35
commit 13a050b2c3
27 changed files with 38 additions and 5 deletions

View File

@@ -19,6 +19,7 @@
<target dev='hda' bus='sata'/>
<address type='drive' controller='0' bus='0' target='2' unit='0'/>
</disk>
<controller type='pci' index='0' model='pci-root'/>
<controller type='sata' index='0'/>
<interface type='bridge'>
<mac address='52:54:00:b9:94:02'/>