mirror of https://github.com/xemu-project/xemu.git
hw/s390x/s390-virtio-ccw: use qemu_create_nic_device()
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Acked-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
0a7549db03
commit
646f87a874
|
@ -229,16 +229,9 @@ static void s390_init_ipl_dev(const char *kernel_filename,
|
|||
|
||||
static void s390_create_virtio_net(BusState *bus, const char *name)
|
||||
{
|
||||
int i;
|
||||
DeviceState *dev;
|
||||
|
||||
for (i = 0; i < nb_nics; i++) {
|
||||
NICInfo *nd = &nd_table[i];
|
||||
DeviceState *dev;
|
||||
|
||||
qemu_check_nic_model(nd, "virtio");
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue