summaryrefslogtreecommitdiff
path: root/hw/ppc
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-03-02 10:30:50 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-12 16:12:45 +0100
commit52310c3fa7dc854dd2376ae8a518141abcdb78f3 (patch)
tree29b2447b2f36061d43c4b6b6d3a57193b1e6bce6 /hw/ppc
parent47c66009ab793241e8210b3018c77a9ce9506aa8 (diff)
downloadqemu-52310c3fa7dc854dd2376ae8a518141abcdb78f3.tar.gz
net: allow using any PCI NICs in -net or -nic
Remove the hard-coded list of PCI NIC names; instead, fill an array using all PCI devices listed under DEVICE_CATEGORY_NETWORK. Keep the old shortcut "virtio" for virtio-net-pci. Suggested-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/e500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 43c15d18c4..2238f963c4 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -916,7 +916,7 @@ void ppce500_init(MachineState *machine, PPCE500Params *params)
if (pci_bus) {
/* Register network interfaces. */
for (i = 0; i < nb_nics; i++) {
- pci_nic_init_nofail(&nd_table[i], pci_bus, "virtio", NULL);
+ pci_nic_init_nofail(&nd_table[i], pci_bus, "virtio-net-pci", NULL);
}
}