[libvirt] [PATCH v3 12/18] qemu: assign e1000e network devices to PCIe slots when appropriate
Andrea Bolognani
abologna at redhat.com
Thu Oct 6 14:40:16 UTC 2016
On Tue, 2016-09-20 at 15:14 -0400, Laine Stump wrote:
> 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
[...]
> @@ -468,6 +468,8 @@ qemuDomainDeviceConnectFlagsInternal(virDomainDeviceDefPtr dev,
> flags = 0;
> else if (STREQ(net->model, "virtio"))
> flags = virtioFlags;
> + else if (STREQ(net->model, "e1000e"))
> + flags = pcieFlags;
pcieFlags should no longer be marked as ATTRIBUTE_UNUSED
in the function declaration after this change.
ACK
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list