usb: implement XHCI underrun/overrun events
commitb4329d1a2a42d3c49ac4b76ec86b6c9db19ea1e9
authorYuri Benditovich <yuri.benditovich@janustech.com>
Mon, 28 Jan 2019 20:05:09 +0000 (28 20:05 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 30 Jan 2019 05:47:52 +0000 (30 06:47 +0100)
treed774c2e6d006f11c372d225fa3a5616cc74517e5
parenta587c832a3f1d6d47dce93bda52c80cfa163e7cf
usb: implement XHCI underrun/overrun events

Implement underrun/overrun events of isochronous endpoints
according to XHCI spec (4.10.3.1)
Guest software restarts data streaming when receives these events.
The XHCI reports these events using interrupter assigned
to the slot (as these events do not have TRB), so current
commit adds the field of assigned interrupter to the
XHCISlot structure. Guest software assigns interrupter to the
slot on 'Address Device' and 'Evaluate Context' commands.

Signed-off-by: Yuri Benditovich <yuri.benditovich@janustech.com>
Message-id: 20190128200444.5128-3-yuri.benditovich@janustech.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c
hw/usb/hcd-xhci.h