* controllers don't plug into any other PCI controller, hence
* they should skip this step */
if (bus->model != VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT &&
- bus->model != VIR_DOMAIN_CONTROLLER_MODEL_PCIE_ROOT &&
- qemuDomainPCIAddressReserveNextAddr(addrs,
- &dev.data.controller->info) < 0) {
- goto cleanup;
+ bus->model != VIR_DOMAIN_CONTROLLER_MODEL_PCIE_ROOT) {
+ if (qemuDomainPCIAddressReserveNextAddr(addrs,
+ &dev.data.controller->info) < 0)
+ goto cleanup;
+
+ if (qemuDomainFillDevicePCIExtensionFlagsIter(NULL, &dev, &dev.data.controller->info, qemuCaps) < 0)
+ goto cleanup;
+
+ if (qemuDomainAssignPCIAddressExtension(NULL, NULL, &dev.data.controller->info, addrs) < 0)
+ goto cleanup;
}
}
<controller type='pci' index='1' model='pci-bridge'>
<model name='pci-bridge'/>
<target chassisNr='1'/>
- <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'>
+ <zpci uid='0x0002' fid='0x00000001'/>
+ </address>
</controller>
<audio id='1' type='none'/>
<hostdev mode='subsystem' type='pci' managed='no'>