]> xenbits.xensource.com Git - libvirt.git/commit
conf: fix fromConfig argument to virDomainPCIAddressValidate()
authorLaine Stump <laine@laine.org>
Sat, 22 Oct 2016 16:53:17 +0000 (12:53 -0400)
committerLaine Stump <laine@laine.org>
Wed, 11 Jan 2017 09:51:54 +0000 (04:51 -0500)
commitb59bbdba4b53fac18c195bb715cf1af61c77910d
treef7a177e863373cef3d2ef84e89868d7a1bbb11a3
parent79901543b91073bf01d1f2d094137cb1821cc6f8
conf: fix fromConfig argument to virDomainPCIAddressValidate()

fromConfig should be true if the caller wants
virDomainPCIAddressValidate() to loosen restrictions on its
interpretation of the pciConnectFlags. In particular, either
PCI_DEVICE or PCIE_DEVICE will be counted as equivalent to both, and
HOTPLUG will be ignored. In a few cases where libvirt was manually
overriding automatic address assignment, it was setting fromConfig to
false when validating the hardcoded manual override. This patch
changes those to fromConfig=true as a preemptive strike against any
future bugs that might otherwise surface.
src/conf/domain_addr.c
src/qemu/qemu_domain_address.c