diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-21 15:25:35 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:40 -0500 |
commit | 97b156213e0e38b29da4480a32d4ec33d14d3012 (patch) | |
tree | 051ed08c9332b8d80e852051176d0b28228eae03 /hw/syborg.c | |
parent | 254111ecc80501a7d5c0e82f78bfa5ca8749ae20 (diff) |
virtio: use qdev properties for configuration.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/syborg.c')
-rw-r--r-- | hw/syborg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/syborg.c b/hw/syborg.c index 2aec7691f4..2d08cb2492 100644 --- a/hw/syborg.c +++ b/hw/syborg.c @@ -77,13 +77,13 @@ static void syborg_init(ram_addr_t ram_size, sysbus_create_simple("syborg,serial", 0xC0008000, pic[7]); sysbus_create_simple("syborg,serial", 0xC0009000, pic[8]); - if (nd_table[0].vlan) { + if (nd_table[0].vlan || nd_table[0].netdev) { DeviceState *dev; SysBusDevice *s; qemu_check_nic_model(&nd_table[0], "virtio"); dev = qdev_create(NULL, "syborg,virtio-net"); - dev->nd = &nd_table[0]; + qdev_set_nic_properties(dev, &nd_table[0]); qdev_init_nofail(dev); s = sysbus_from_qdev(dev); sysbus_mmio_map(s, 0, 0xc000c000); |