mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Allow to plug virtio-net-pci into PCIe slot
virtio-net-pci adapter is capable to use irqfd with vhost-net only in MSI-X mode, which appears to be available only on PCIe bus, at least on ARM Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
This commit is contained in:
parent
8b78ec011c
commit
ede34470fd
@ -1662,6 +1662,14 @@ qemuCollectPCIAddress(virDomainDefPtr def ATTRIBUTE_UNUSED,
|
|||||||
*/
|
*/
|
||||||
flags = VIR_PCI_CONNECT_TYPE_PCI | VIR_PCI_CONNECT_TYPE_PCIE;
|
flags = VIR_PCI_CONNECT_TYPE_PCI | VIR_PCI_CONNECT_TYPE_PCIE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_DEVICE_NET:
|
||||||
|
if (STREQ(device->data.net->model, "virtio")) {
|
||||||
|
/* virtio-net-pci adapter in qemu has to be plugged into PCIe slot
|
||||||
|
* in order to be able to use irqfds with vhost-net
|
||||||
|
*/
|
||||||
|
flags = VIR_PCI_CONNECT_TYPE_PCI | VIR_PCI_CONNECT_TYPE_PCIE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ignore implicit controllers on slot 0:0:1.0:
|
/* Ignore implicit controllers on slot 0:0:1.0:
|
||||||
|
Loading…
Reference in New Issue
Block a user