mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: allow 32 slots on pcie-expander-bus, not just 1
When I added support for the pcie-expander-bus controller in commit
bc07251f
, I incorrectly thought that it only had a single slot
available. Actually it has 32 slots, just like the root complex aka
pcie-root (the part that I *did* get correct is that unlike pcie-root
a pcie-expander-bus doesn't allow any integrated endpoint devices -
only pcie-root-ports and dmi-to-pci-controllers are allowed).
This commit is contained in:
parent
7fe613af57
commit
22afd44171
@ -304,13 +304,13 @@ virDomainPCIAddressBusSetModel(virDomainPCIAddressBusPtr bus,
|
|||||||
bus->maxSlot = VIR_PCI_ADDRESS_SLOT_LAST;
|
bus->maxSlot = VIR_PCI_ADDRESS_SLOT_LAST;
|
||||||
break;
|
break;
|
||||||
case VIR_DOMAIN_CONTROLLER_MODEL_PCIE_EXPANDER_BUS:
|
case VIR_DOMAIN_CONTROLLER_MODEL_PCIE_EXPANDER_BUS:
|
||||||
/* single slot, no hotplug, only accepts pcie-root-port or
|
/* 32 slots, no hotplug, only accepts pcie-root-port or
|
||||||
* dmi-to-pci-bridge
|
* dmi-to-pci-bridge
|
||||||
*/
|
*/
|
||||||
bus->flags = (VIR_PCI_CONNECT_TYPE_PCIE_ROOT_PORT |
|
bus->flags = (VIR_PCI_CONNECT_TYPE_PCIE_ROOT_PORT |
|
||||||
VIR_PCI_CONNECT_TYPE_DMI_TO_PCI_BRIDGE);
|
VIR_PCI_CONNECT_TYPE_DMI_TO_PCI_BRIDGE);
|
||||||
bus->minSlot = 0;
|
bus->minSlot = 0;
|
||||||
bus->maxSlot = 0;
|
bus->maxSlot = VIR_PCI_ADDRESS_SLOT_LAST;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user