diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2022-01-12 09:58:35 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-01-13 10:22:37 +0100 |
commit | 7cd2cfa2e6d61fac3652422f46aa77899bbeb757 (patch) | |
tree | e8023923fcc75304e0043aff0ee2b95f420ab292 /hw/usb/desc.h | |
parent | 5280117b1e66555a526e04c624d9e1e8e7fec1ae (diff) |
usb: allow max 8192 bytes for desc
A device of USB video class usually uses larger desc structure, so
use larger buffer to avoid failure. (dev-video.c is ready)
This is an unlikely code path:
1, during guest startup, guest tries to probe device.
2, run 'lsusb' command in guest(or other similar commands).
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20220112015835.900619-1-pizhenwei@bytedance.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/desc.h')
-rw-r--r-- | hw/usb/desc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/desc.h b/hw/usb/desc.h index 3ac604ecfa..35babdeff6 100644 --- a/hw/usb/desc.h +++ b/hw/usb/desc.h @@ -199,6 +199,7 @@ struct USBDesc { const USBDescMSOS *msos; }; +#define USB_DESC_MAX_LEN 8192 #define USB_DESC_FLAG_SUPER (1 << 1) /* little helpers */ |