]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: support new pci controller model "pcie-expander-bus"
authorLaine Stump <laine@laine.org>
Wed, 23 Mar 2016 19:49:29 +0000 (15:49 -0400)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2016 18:00:34 +0000 (14:00 -0400)
commit8b62c65d24bdb20121d3147b4f4dc98bac4f024b
tree8e42d9a953b00ce6db2fb624cd8688b54e4d9aa7
parentbc07251f59ecf828c3f9a82c9ef485937fd6c9bb
qemu: support new pci controller model "pcie-expander-bus"

This is backed by the qemu device pxb-pcie, which will be available in
qemu 2.6.0.

As with pci-expander-bus (which uses qemu's pxb device), the busNr
attribute and <node> subelement of <target> are used to set the bus_nr
and numa_node options.

During post-parse we validate that the domain's machinetype is
q35-based (since the device shows up for 440fx-based machinetypes, but
is unusable), as well as checking that <node> specifies a node that is
actually configured on the guest.
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain_address.c
tests/qemuxml2argvdata/qemuxml2argv-pcie-expander-bus-bad-machine.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-pcie-expander-bus.args [new file with mode: 0644]
tests/qemuxml2argvtest.c