]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: assign e1000e network devices to PCIe slots when appropriate
authorLaine Stump <laine@laine.org>
Mon, 8 Aug 2016 09:23:57 +0000 (05:23 -0400)
committerLaine Stump <laine@laine.org>
Mon, 14 Nov 2016 19:17:14 +0000 (14:17 -0500)
commit9dfe733e99f47b605ef02639276efc514825012d
tree75ae683d0589b4cfa97de9026369007800d03786
parentc7fc151eec74c7bbb380f78268a45d0d1e559d52
qemu: assign e1000e network devices to PCIe slots when appropriate

The e1000e is an emulated network device based on the Intel 82574,
present in qemu 2.7.0 and later. Among other differences from the
e1000, it presents itself as a PCIe device rather than legacy PCI. In
order to get it assigned to a PCIe controller, this patch updates the
flags setting for network devices when the model name is "e1000e".

(Note that for some reason libvirt has never validated the network
device model names other than to check that there are no dangerous
characters in them. That should probably change, but is the subject of
another patch.)

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1343094
src/qemu/qemu_domain_address.c
tests/qemuxml2argvdata/qemuxml2argv-q35-pcie.args
tests/qemuxml2argvdata/qemuxml2argv-q35-pcie.xml
tests/qemuxml2argvdata/qemuxml2argv-q35-virtio-pci.args
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-pcie.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-virtio-pci.xml