hw/usb: record async control completion for parameter transfers
Record the completion side of parameter-based control transfers when they complete asynchronously. This lets pcap captures include descriptor response data for requests such as GET_DESCRIPTOR from usb-host devices. The synchronous path already recorded the completion, but the async SETUP_STATE_PARAM path was missing it. Signed-off-by: Ziyi Fu <ziyi.fu@cyberus-technology.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Fixes: 0f6dba145a4b ("usb: add pcap support.") Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Ziyi Fu committed
Jun 26, 2026 at 10:05 UTC
a525551d86aed37fe0e7425049be523b777a1fd5
1 file changed
+1
hw/usb/core.c
+1
@@ -345,6 +345,7 @@ void usb_generic_async_ctrl_complete(USBDevice *s, USBPacket *p)
345
p->actual_length = 0;
346
usb_packet_copy(p, s->data_buf, s->setup_len);
347
}
348
+ usb_pcap_ctrl(p, false);
349
break;
350
351
default: