]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: aggregate multiple devices on a slot when assigning PCI addresses
authorLaine Stump <laine@laine.org>
Wed, 19 Oct 2016 18:15:01 +0000 (14:15 -0400)
committerLaine Stump <laine@laine.org>
Wed, 11 Jan 2017 09:43:22 +0000 (04:43 -0500)
commit48d39cf96d9e16b33efd7a1a9eeffb04fee4e945
treef9aad8078f9cd579b8f7f24e77e101fbddde952d
parent8f4008713a49873b4bf354321f94b3fdeee14231
conf: aggregate multiple devices on a slot when assigning PCI addresses

If a PCI device has VIR_PCI_CONNECT_AGGREGATE_SLOT set in its
pciConnectFlags, then during address assignment we allow multiple
instances of this type of device to be auto-assigned to multiple
functions on the same device. A slot is used for aggregating multiple
devices only if the first device assigned to that slot had
VIR_PCI_CONNECT_AGGREGATE_SLOT set. but any device types that have
AGGREGATE_SLOT set might be mix/matched on the same slot.

(NB: libvirt should never set the AGGREGATE_SLOT flag for a device
type that might need to be hotplugged. Currently it is only planned
for pcie-root-port and possibly other PCI controller types, and none
of those are hotpluggable anyway)

There aren't yet any devices that use this flag. That will be in a
later patch.
src/conf/domain_addr.c
src/conf/domain_addr.h
src/qemu/qemu_domain_address.c