From 71938a09d2b9fd4007515fec6c395916cb08f868 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 12 Jun 2013 13:01:49 +0200 Subject: usb: add serial bus property This patch adds a serial property for all usb devices, which can be used to set the serial number of a usb device (as listed by lsusb -v) to a specific value. Applies to emulated devices only. Signed-off-by: Gerd Hoffmann --- include/hw/usb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/usb.h') diff --git a/include/hw/usb.h b/include/hw/usb.h index 4d9d05e..901b0da 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -205,6 +205,7 @@ struct USBDevice { DeviceState qdev; USBPort *port; char *port_path; + char *serial; void *opaque; uint32_t flags; -- cgit v1.1