[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 09/46] hw/arm/virt: use pci_init_nic_devices()
From: |
David Woodhouse |
Subject: |
[PATCH v3 09/46] hw/arm/virt: use pci_init_nic_devices() |
Date: |
Mon, 8 Jan 2024 20:26:38 +0000 |
From: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
hw/arm/virt.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 2793121cb4..8cf9237001 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1454,9 +1454,7 @@ static void create_pcie(VirtMachineState *vms)
pci->bypass_iommu = vms->default_bus_bypass_iommu;
vms->bus = pci->bus;
if (vms->bus) {
- for (i = 0; i < nb_nics; i++) {
- pci_nic_init_nofail(&nd_table[i], pci->bus, mc->default_nic, NULL);
- }
+ pci_init_nic_devices(pci->bus, mc->default_nic);
}
nodename = vms->pciehb_nodename = g_strdup_printf("/pcie@%" PRIx64, base);
--
2.41.0
- Re: [PATCH v3 12/46] hw/mips/fuloong2e: use pci_init_nic_devices(), (continued)
- [PATCH v3 03/46] net: add qemu_create_nic_bus_devices(), David Woodhouse, 2024/01/08
- [PATCH v3 35/46] hw/mips/mipssim: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 27/46] hw/arm/highbank: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 24/46] hw/arm/fsl: use qemu_configure_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 45/46] net: remove qemu_show_nic_models(), qemu_find_nic_model(), David Woodhouse, 2024/01/08
- [PATCH v3 09/46] hw/arm/virt: use pci_init_nic_devices(),
David Woodhouse <=
- [PATCH v3 43/46] net: remove qemu_check_nic_model(), David Woodhouse, 2024/01/08
- [PATCH v3 40/46] hw/s390x/s390-virtio-ccw: use qemu_create_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 37/46] hw/net/lasi_i82596: use qemu_configure_nic_device(), David Woodhouse, 2024/01/08
- [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), David Woodhouse, 2024/01/08