From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MrGh3-0006KC-4e for qemu-devel@nongnu.org; Fri, 25 Sep 2009 15:43:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MrGgy-0006FZ-B4 for qemu-devel@nongnu.org; Fri, 25 Sep 2009 15:43:00 -0400 Received: from [199.232.76.173] (port=56035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MrGgy-0006FN-15 for qemu-devel@nongnu.org; Fri, 25 Sep 2009 15:42:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MrGgx-0004cB-IK for qemu-devel@nongnu.org; Fri, 25 Sep 2009 15:42:55 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8PJgsQ4028326 for ; Fri, 25 Sep 2009 15:42:54 -0400 From: Gerd Hoffmann Date: Fri, 25 Sep 2009 21:42:26 +0200 Message-Id: <1253907769-1067-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1253907769-1067-1-git-send-email-kraxel@redhat.com> References: <1253907769-1067-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 01/24] unbreak usb pass-through on linux. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Changes: * Re-add the 'dev->fd = fd;' line which the qdev patches dropped by mistake. * call qdev_init() so the newly created usb device is plugged into a usb port and thus actually visible to the guest. Signed-off-by: Gerd Hoffmann --- usb-linux.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index c434e4f..2b7b092 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -922,6 +922,7 @@ static USBDevice *usb_host_device_open_addr(int bus_num, int addr, const char *p dev->bus_num = bus_num; dev->addr = addr; + dev->fd = fd; /* read the device description */ dev->descr_len = read(fd, dev->descr, sizeof(dev->descr)); @@ -979,6 +980,7 @@ static USBDevice *usb_host_device_open_addr(int bus_num, int addr, const char *p hostdev_link(dev); + qdev_init(&d->qdev); return (USBDevice *) dev; fail: -- 1.6.2.5