mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
uhci: When the guest marks a pending td non-active, cancel the queue
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
8c75a899f8
commit
420ca987d5
1 changed files with 4 additions and 0 deletions
|
@ -821,6 +821,10 @@ static int uhci_handle_td(UHCIState *s, UHCIQueue *q, uint32_t qh_addr,
|
||||||
|
|
||||||
/* Is active ? */
|
/* Is active ? */
|
||||||
if (!(td->ctrl & TD_CTRL_ACTIVE)) {
|
if (!(td->ctrl & TD_CTRL_ACTIVE)) {
|
||||||
|
if (async) {
|
||||||
|
/* Guest marked a pending td non-active, cancel the queue */
|
||||||
|
uhci_queue_free(async->queue, "pending td non-active");
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* ehci11d spec page 22: "Even if the Active bit in the TD is already
|
* ehci11d spec page 22: "Even if the Active bit in the TD is already
|
||||||
* cleared when the TD is fetched ... an IOC interrupt is generated"
|
* cleared when the TD is fetched ... an IOC interrupt is generated"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue