diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-12 13:01:49 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-24 08:41:07 +0200 |
| commit | 71938a09d2b9fd4007515fec6c395916cb08f868 (patch) | |
| tree | 94eb7456d3f842d2dd7ee3edf191249b149b0bce /include/hw/usb.h | |
| parent | 628e54857a82a3cb65ef96c12640c30d6307a064 (diff) | |
| download | focaccia-qemu-71938a09d2b9fd4007515fec6c395916cb08f868.tar.gz focaccia-qemu-71938a09d2b9fd4007515fec6c395916cb08f868.zip | |
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 <kraxel@redhat.com>
Diffstat (limited to 'include/hw/usb.h')
| -rw-r--r-- | include/hw/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h index 4d9d05e9bc..901b0da8b0 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; |