]> xenbits.xensource.com Git - libvirt.git/commit
conf: add new PCI_CONNECT flag AUTOASSIGN
authorLaine Stump <laine@redhat.com>
Mon, 23 Mar 2020 02:32:49 +0000 (22:32 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 13 Apr 2020 02:35:45 +0000 (22:35 -0400)
commitc296a846ad7de3066a17404f4f407d3e1b6d7935
tree6d3b60d6317ab33ca3412e5a7063d7009fc148f2
parent389811d517c270c4f916fce4b3d64f90331244d7
conf: add new PCI_CONNECT flag AUTOASSIGN

This new flag will be set for any controller that we decide can have
devices assigned to it automatically during PCI device assignment. In
the past PCI_CONNECT_TYPE_HOTPLUGGABLE was used for this purpose, but
that is overloading that flag, and no longer technically correct; what
we *really* want is to auto-assign devices to any pcie-root-port or
pcie-switch-downstream-port regardless of whether or not that
controller happens to have hotplug enabled.

This patch just adds the flag, but doesn't use it at all. Note that
the numbering of all the other flags was changed in order to insert
the new flag near the beginning of the list; that doesn't cause any
problem because the connect flags aren't stored anywhere between runs
of libvirtd.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_addr.h