xhci: recheck slot status
commit236846a019c4f7aa3111026fc9a1fe09684c8978
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 7 Jan 2020 08:36:06 +0000 (7 09:36 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 13 Jan 2020 13:05:55 +0000 (13 14:05 +0100)
treed8c8809028816fb8e5e3597897c52d9c462a6fe9
parent34b9d6a1f8dfa8da08e084a7193a1fa3f669164e
xhci: recheck slot status

Factor out slot status check into a helper function.  Add an additional
check after completing transfers.  This is needed in case a guest
queues multiple transfers in a row and a device unplug happens while
qemu processes them.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1786413
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200107083606.12393-1-kraxel@redhat.com
hw/usb/hcd-xhci.c