OSDN Git Service

ehci: Verify guest does not change the token of inflight qtd-s
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Dec 2012 13:35:24 +0000 (14:35 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 Jan 2013 11:57:23 +0000 (12:57 +0100)
commitd066c57b1c97a1967c949aba643bba35329b32ee
treed479cd920116ed55440b749c7b69291b559c4856
parentc643263409b42a31fd9b1458cd5158280b9c62e1
ehci: Verify guest does not change the token of inflight qtd-s

This is not allowed, except for clearing active on cancellation, so don't
warn when the new token does not have its active bit set.

This unifies the cancellation path for modified qtd-s, and prepares
ehci_verify_qtd to be used ad an extra check inside
ehci_writeback_async_complete_packet().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c