[libvirt] sharing multiple identical USB devices?

Hi, I have Windows XP running on Fedora 10. I can successfully share a single USB-to-RS232 converter by inserting this in my xml file: <hostdev mode='subsystem' type='usb'> <source> <vendor id='0x0403'/> <product id='0x6001'/> </source> </hostdev> However, I can't seem to get two of these to work at the same time. I want to do: <hostdev mode='subsystem' type='usb'> <source> <vendor id='0x0403'/> <product id='0x6001'/> <address bus='0x03' device='0x02'/> </source> </hostdev> <hostdev mode='subsystem' type='usb'> <source> <vendor id='0x0403'/> <product id='0x6001'/> <address bus='0x03' device='0x03'/> </source> </hostdev> using the "address" stanza to identify the devices uniquely, but it just doesn't work. Is this a bug, or am I doing something wrong? With the two device setup, Windows still only assigns one serial port to one of the devices, and none to the other. - Mike

On Thu, Jan 15, 2009 at 04:41:00PM -0500, Dr. Michael J. Chudobiak wrote:
Hi,
I have Windows XP running on Fedora 10.
I can successfully share a single USB-to-RS232 converter by inserting this in my xml file:
I'm assuming this must be with qemu or KVM. What qemu command line does this generate? (ie. ps ax | grep qemu) Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top

On Thu, Jan 15, 2009 at 04:41:00PM -0500, Dr. Michael J. Chudobiak wrote:
However, I can't seem to get two of these to work at the same time. I want to do:
<hostdev mode='subsystem' type='usb'> <source> <vendor id='0x0403'/> <product id='0x6001'/> <address bus='0x03' device='0x02'/> </source> </hostdev> <hostdev mode='subsystem' type='usb'> <source> <vendor id='0x0403'/> <product id='0x6001'/> <address bus='0x03' device='0x03'/> </source> </hostdev>
using the "address" stanza to identify the devices uniquely, but it just doesn't work. Is this a bug, or am I doing something wrong? Qemu/KVM allow to either use vendor/product or address/bus so with two identical USB devices you need to resort to address/bus only. Does dropping vendor/product from the XML completely help? -- Guido

Guido � wrote:
Qemu/KVM allow to either use vendor/product or address/bus so with two identical USB devices you need to resort to address/bus only. Does dropping vendor/product from the XML completely help?
Thanks, Guido! That was the problem! You can not use vendor/product and bus/device at the same time. - Mike
participants (3)
-
Dr. Michael J. Chudobiak
-
Guido Günther
-
Richard W.M. Jones