Bug 640332 - add serial number to qemu-kvm usbdevice parameter
Summary: add serial number to qemu-kvm usbdevice parameter
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-05 15:08 UTC by Helge Deller
Modified: 2013-01-09 23:12 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
: 986343 (view as bug list)
Environment:
Last Closed: 2012-12-15 00:04:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Helge Deller 2010-10-05 15:08:40 UTC
Description of problem:

KVM allows to passthrough USB devices to the virtual machine.
This is done with the --usbdevice parameter. Syntax is:
–usbdevice  host:1234:5678,
where 1234=vendor id, and 5678=product id.

But there is a problem if you have two *identical* USB devices (e.g. two smartcard readers, or two USB mice), in which case it's not possible to direct one USB device to virtual machine 1 and the second USB device to virtual machine 2. This happens for *identical* USB devices, where the vendor id and the product id is the same for botth.

In Virtualbox for example it's possible to distingish those devices. They realized it by adding a third parameter, the Serial number of the USB device.
This value is given in the "lsusb" output as "iSerial" field.

How reproducible:
Just add two identical USB devices (e.g. smartcard readers or USB mice from the same vendor) and try to pass each of them to different virtual machines.


Additional info:
My proposal is, that in qemu-kvm the --usbdevice parameter should be extended like this
--usbdevice host:<vendor id>[:<product id>[:<serial number>]

In addition corresponing options to select that in virt-manager would be helpful as well.

Comment 1 Daniel Berrangé 2010-10-06 13:44:15 UTC
The '-usbdevice' argument is one of the legacy syntax options with QEMU.  USB devices are now specified using the generic '-device' option. None the less, it should be possible to make this new argument take a USB serial number as you suggest.

Comment 2 Fedora Admin XMLRPC Client 2012-03-15 17:58:43 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Cole Robinson 2012-12-15 00:04:43 UTC
I've moved this RFE to the upstream qemu tracker:

https://bugs.launchpad.net/qemu/+bug/1090602


Note You need to log in before you can comment on or make changes to this bug.