aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-12-15 10:20:57 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-18 11:26:28 -0600
commit42be86ce95db944910005aa981a8e9ae5e01b05a (patch)
tree1e1f24b580cedcc16173fc24a68c9f507e6cf036 /vl.c
parent15ff7705444ab9663189946d6d648431e0649df1 (diff)
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.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/vl.c b/vl.c
index 8d9d9c239a..288597891f 100644
--- a/vl.c
+++ b/vl.c
@@ -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)));