From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqtNc-0007yV-BM for qemu-devel@nongnu.org; Thu, 24 Sep 2009 14:49:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqtNX-0007xD-Cb for qemu-devel@nongnu.org; Thu, 24 Sep 2009 14:49:23 -0400 Received: from [199.232.76.173] (port=49228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqtNX-0007xA-AQ for qemu-devel@nongnu.org; Thu, 24 Sep 2009 14:49:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22169) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqtNW-0006m7-Iw for qemu-devel@nongnu.org; Thu, 24 Sep 2009 14:49:18 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8OInGJX009490 for ; Thu, 24 Sep 2009 14:49:17 -0400 Date: Thu, 24 Sep 2009 15:49:08 -0300 From: Luiz Capitulino Message-ID: <20090924154908.7b180029@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] qdev: USB is not working List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kraxel@redhat.com Cc: qemu-devel@nongnu.org Hi Gerd, When trying to add a USB device to QEMU (either by command-line or the Monitor) I'm getting the following error: """ husb: open device 1.5 usb_create: no bus specified, using "usb.0" for "USB Host Device" husb: config #1 need -1 USBDEVFS_DISCONNECT: Invalid argument """ I've tried different devices, as I thought this was a problem with my box, but got the same problem.. Then I debugged and found out that the problem was introduced by one of the following commits: """ commit a5d2f7273c4f59942cc7ffa763d6b60a6f44e908 Author: Gerd Hoffmann Date: Mon Aug 31 14:24:00 2009 +0200 qdev/usb: make qemu aware of usb busses. """ """ commit 806b60248218bd5f74a8b070f5a99a864e8e51c6 Author: Gerd Hoffmann Date: Mon Aug 31 14:23:59 2009 +0200 qdev/usb: add usb bus support to qdev, convert drivers. """ I can't tell which one introduced the problem because with commit 806b60248218bd5f74a8b070f5a99a864e8e51c6 I get a segfault, which was fixed by the other. I couldn't revert them either, because there are rejections, but resetting the tree right before those makes USB work for me.