qemu 1.3.0: usb devices shouldn't have same vendor/product ID and same serial

Bug #1096714 reported by Sven
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

Boot Windows XP with
./qemu-system-i386 -device pci-ohci -device usb-tablet
and then with
./qemu-system-i386 -device pci-ohci -device usb-kbd

and you will notice, that the usb keyboard is not detected. In fact, Windows XP detects the usb tablet and loads the driver for the tablet instead of the driver for the keyboard.

The problem seems to be, that vendor and product ID and even the seriel of both the usb tablet and the usb keyboard are the same as an lsusb reveiles. Hence, Windows XP doesn't detect when you replace the tablet by a keyboard and vice versa. I didn't check other USB devices, but it seems a bad idea to me to have devices with the same vendor/product Id. I'm not aware, whether it is sufficient to change the seriel numbers of the devices.

Revision history for this message
Michal Suchanek (hramrach) wrote :

This is a problem with ancient Linux distributions that match vendor-product in Xorg.conf as well.

Revision history for this message
Sven (sven-koehler) wrote :

This bug is more than 4 years old. Why did I even bother writing it? Is the problem still there in recent qemu versions?

Revision history for this message
Dr. David Alan Gilbert (dgilbert-h) wrote :

Hi Sven,
  Hmm you do have a point - I wonder if this is fixed on windows by commit 5319dc7 from Gerd in November 2013 that added 'msos-desc' compat properties; but I see your point about having the same IDs

(ccing in Gerd)

Revision history for this message
Gerd Hoffmann (kraxel-redhat) wrote :

Try "-device usb-tablet,serial=1234"

Revision history for this message
Michal Suchanek (hramrach) wrote :

I see no option in Xorg.conf to match serial. Maybe there is. It is mostly undocumented, especially for some random ancient X11 snapshot the distro has.

That said the VM happens to be configured in such a way it works - keyboard and mouse are in same order on USB bus and in Xorg.conf

Revision history for this message
Thomas Huth (th-huth) wrote : Moved bug report

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/92

Changed in qemu:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.