Skip to contentSkip to conversation

correct position of hid descriptor for emulated usb mouse

Qemu-devel Lonnie Mendez 1 participant 1 message Apr 8, 2006

lore
Share & tools
lore
#0 lore raw

I was trying out qemu's emulated usb mouse under debian sid and
windows xp. It worked fine under debian but failed to start under windows xp guest.

It turns out the hid descriptor in the qemu_mouse_config_descriptor
array is out of position. Please see section 7.1 in the document HID1_11:

"The HID descriptor shall be interleaved between the Interface and Endpoint descriptors for HID Interfaces. That is, the order shall be:

Configuration descriptor
Interface descriptor (specifying HID Class)
HID descriptor (associated with above Interface) Endpoint descriptor (for HID Interrupt In Endpoint) Optional Endpoint descriptor (for HID Interrupt Out Endpoint)"

The patch is linked below:

http://gnome.dnsalias.net/patches/qemu-hidmousexp.patch