</element>
</optional>
+ <optional>
+ <element name='capability'>
+ <attribute name='type'>
+ <choice>
+ <value>pci-bridge</value>
+ <value>cardbus-bridge</value>
+ </choice>
+ </attribute>
+ </element>
+ </optional>
+
<optional>
<element name='iommuGroup'>
<attribute name='number'>
</element>
</optional>
- <optional>
- <element name='capability'>
- <attribute name='type'>
- <choice>
- <value>pci-bridge</value>
- <value>cardbus-bridge</value>
- </choice>
- </attribute>
- </element>
- </optional>
-
<optional>
<element name='pci-express'>
<zeroOrMore>
virBufferAddLit(&buf, "</capability>\n");
}
}
+ if (data->pci_dev.hdrType) {
+ virBufferAsprintf(&buf, "<capability type='%s'/>\n",
+ virPCIHeaderTypeToString(data->pci_dev.hdrType));
+ }
if (data->pci_dev.nIommuGroupDevices) {
virBufferAsprintf(&buf, "<iommuGroup number='%d'>\n",
data->pci_dev.iommuGroupNumber);
virBufferAsprintf(&buf, "<numa node='%d'/>\n",
data->pci_dev.numa_node);
- if (data->pci_dev.hdrType) {
- virBufferAsprintf(&buf, "<capability type='%s'/>\n",
- virPCIHeaderTypeToString(data->pci_dev.hdrType));
- }
-
if (data->pci_dev.flags & VIR_NODE_DEV_CAP_FLAG_PCIE)
virPCIEDeviceInfoFormat(&buf, data->pci_dev.pci_express);
break;
<function>0</function>
<product id='0x8c10'>8 Series/C220 Series Chipset Family PCI Express Root Port #1</product>
<vendor id='0x8086'>Intel Corporation</vendor>
+ <capability type='pci-bridge'/>
<iommuGroup number='8'>
<address domain='0x0000' bus='0x00' slot='0x1c' function='0x0'/>
</iommuGroup>
- <capability type='pci-bridge'/>
<pci-express>
<link validity='cap' port='1' speed='5' width='1'/>
<link validity='sta' speed='2.5' width='1'/>