qemu-e2k/hw/usb
Gerd Hoffmann 9d55d1adc8 usb: add serial number generator
This patch adds a function which creates unique serial numbers for usb
devices and puts it into use.  Windows guests tend to become unhappy if
they find two identical usb devices in the system.  Effects range from
non-functional devices (with yellow exclamation mark in device manager)
to BSODs.  Handing out unique serial numbers to devices fixes this.

With this patch applied almost all emulated devices get a generated,
unique serial number.  There are two exceptions:

 * usb-storage devices will prefer a user-specified serial number
   and will only get a generated number in case the serial property
   is unset.
 * usb-hid devices keep the fixed serial number "42" as it is used
   to signal "remote wakeup actually works".
   See commit 7b074a22da

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2012-04-26 12:21:17 +02:00
..
bus.c usb/vmstate: add parent dev path 2012-04-17 10:23:21 +02:00
core.c usb-ehci: add missing usb_packet_init() call 2012-04-26 12:21:15 +02:00
desc.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
desc.h usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-audio.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-bluetooth.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-hid.c
dev-hub.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-network.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-serial.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-smartcard-reader.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-storage.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-wacom.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
hcd-ehci.c usb-ehci: Ensure frindex writes leave a valid frindex value 2012-04-26 12:21:15 +02:00
hcd-musb.c
hcd-ohci.c usb-ohci: DMA writeback bug fixes 2012-03-13 10:15:32 +01:00
hcd-uhci.c usb-uhci: queuing fix 2012-04-17 10:23:27 +02:00
hcd-xhci.c usb-xhci: fix bit test 2012-04-26 12:21:16 +02:00
host-bsd.c
host-linux.c usb-host: fix zero-length packets 2012-04-26 12:21:16 +02:00
host-stub.c
libhw.c
redirect.c usb-redir: Not finding an async urb id is not an error 2012-04-26 12:21:17 +02:00