[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 40/46] hw/s390x/s390-virtio-ccw: use qemu_create_nic_device()
From: |
David Woodhouse |
Subject: |
[PATCH v3 40/46] hw/s390x/s390-virtio-ccw: use qemu_create_nic_device() |
Date: |
Mon, 8 Jan 2024 20:27:09 +0000 |
From: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
hw/s390x/s390-virtio-ccw.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 1169e20b94..202c378131 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -221,16 +221,9 @@ static void s390_init_ipl_dev(const char *kernel_filename,
static void s390_create_virtio_net(BusState *bus, const char *name)
{
- int i;
-
- for (i = 0; i < nb_nics; i++) {
- NICInfo *nd = &nd_table[i];
- DeviceState *dev;
-
- qemu_check_nic_model(nd, "virtio");
+ DeviceState *dev;
- dev = qdev_new(name);
- qdev_set_nic_properties(dev, nd);
+ while ((dev = qemu_create_nic_device(name, true, "virtio"))) {
qdev_realize_and_unref(dev, bus, &error_fatal);
}
}
--
2.41.0
- [PATCH v3 35/46] hw/mips/mipssim: use qemu_create_nic_device(), (continued)
- [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, 2024/01/08
- [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 <=
- [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
- Re: [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), Thomas Huth, 2024/01/26
- Re: [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), David Woodhouse, 2024/01/26
- Re: [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), Thomas Huth, 2024/01/26
- Re: [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), David Woodhouse, 2024/01/26
- Re: [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), Thomas Huth, 2024/01/26
- Re: [PATCH v3 05/46] hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices(), David Woodhouse, 2024/01/26