]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: restrict expander buses to connect only to a root bus
authorLaine Stump <laine@laine.org>
Sat, 6 Aug 2016 23:03:31 +0000 (19:03 -0400)
committerLaine Stump <laine@laine.org>
Wed, 10 Aug 2016 14:29:34 +0000 (10:29 -0400)
commita220f43a65cca6c6f2ca268cdbbf8f997b2e2b13
tree7384a0bd812bc51a5d4f632a00af5809ce541241
parentb70e3d0123fcb6e22e99d1b272239e03a84262cb
conf: restrict expander buses to connect only to a root bus

More misunderstanding/mistaken assumptions on my part - I had thought
that a pci-expander-bus could be plugged into any legacy PCI slot, and
that pcie-expander-bus could be plugged into any PCIe slot. This isn't
correct - they can both be plugged ontly into their respective root
buses. This patch adds that restriction.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1358712
src/conf/domain_addr.c
src/conf/domain_addr.h
tests/qemuxml2argvdata/qemuxml2argv-pci-expander-bus-bad-bus.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-pcie-expander-bus-bad-bus.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c