diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-12-15 10:20:57 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-18 11:26:28 -0600 |
commit | 42be86ce95db944910005aa981a8e9ae5e01b05a (patch) | |
tree | 1e1f24b580cedcc16173fc24a68c9f507e6cf036 /vl.c | |
parent | 15ff7705444ab9663189946d6d648431e0649df1 (diff) | |
download | qemu-42be86ce95db944910005aa981a8e9ae5e01b05a.zip qemu-42be86ce95db944910005aa981a8e9ae5e01b05a.tar.gz qemu-42be86ce95db944910005aa981a8e9ae5e01b05a.tar.bz2 |
usb-net: use qdev for -usbdevice
Rebased to master, adapted to device renaming by armbru,
no other changes.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -2654,24 +2654,6 @@ static int usb_device_add(const char *devname, int is_hotplug) /* the other ones */ if (strstart(devname, "host:", &p)) { dev = usb_host_device_open(p); - } else if (strstart(devname, "net:", &p)) { - QemuOpts *opts; - int idx; - - opts = qemu_opts_parse(&qemu_net_opts, p, NULL); - if (!opts) { - return -1; - } - - qemu_opt_set(opts, "type", "nic"); - qemu_opt_set(opts, "model", "usb"); - - idx = net_client_init(NULL, opts, 0); - if (idx == -1) { - return -1; - } - - dev = usb_net_init(&nd_table[idx]); } else if (!strcmp(devname, "bt") || strstart(devname, "bt:", &p)) { dev = usb_bt_init(devname[2] ? hci_init(p) : bt_new_hci(qemu_find_bt_vlan(0))); |