aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 18bcc1f..0619f1c 100644
--- a/vl.c
+++ b/vl.c
@@ -5866,6 +5866,9 @@ static int usb_device_del(const char *devname)
int bus_num, addr;
const char *p;
+ if (strstart(devname, "host:", &p))
+ return usb_host_device_close(p);
+
if (!used_usb_ports)
return -1;