mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Revert "qemu: Allow to plug virtio-net-pci into PCIe slot"
This reverts commitede34470fd
, which was apparently written based on testing performed before commits1e15be1
and 9a12b6 were pushed upstream. Once those two patches are in place, commitede34470
is redundant, and can even cause incorrect/unexpected behavior when auto-assigning addresses for virtio-net devices.
This commit is contained in:
parent
68b2405c67
commit
d5e6d1cfc7
@ -1680,14 +1680,6 @@ 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