[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 22f84e7] unbreak usb pass-through on linux.
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 22f84e7] unbreak usb pass-through on linux. |
Date: |
Fri, 25 Sep 2009 15:44:15 -0000 |
From: Gerd Hoffmann <address@hidden>
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 <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
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:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 22f84e7] unbreak usb pass-through on linux.,
Anthony Liguori <=