Re: [Qemu-devel] [PATCH] usb-linux: allow multiple devices with matching IDs

2010-11-13 Thread Grazvydas Ignotas
On Wed, Nov 10, 2010 at 6:01 PM, Markus Armbruster wrote: > Grazvydas Ignotas writes: > >> Right now if we pass through multiple USB devices with matching vendor >> and product IDs, only first one is passed to guest, as the code thinks >> second device is already attac

[Qemu-devel] [PATCH] usb-linux: allow multiple devices with matching IDs

2010-10-22 Thread Grazvydas Ignotas
replugged on host, because the address changes after replug. Fix this by checking bus.addr before assuming the device is already attached. This way -usbdevice host:1234:1234 -usbdevice host:1234:1234 will pass through 2 devices correctly. Signed-off-by: Grazvydas Ignotas --- usb-linux.c |8