mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
628e54857a
commit
71938a09d2
5 changed files with 14 additions and 10 deletions
|
@ -205,6 +205,7 @@ struct USBDevice {
|
|||
DeviceState qdev;
|
||||
USBPort *port;
|
||||
char *port_path;
|
||||
char *serial;
|
||||
void *opaque;
|
||||
uint32_t flags;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue