mirror of https://gitee.com/openkylin/qemu.git
usb: bugfixes for ehci and xhci.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJbOzMsAAoJEEy22O7T6HE43hwP/jvz1w4jDEBRpORJmHcrIHiG b666V6/Y3yBqegxVNp9bZXE9eN1j7dwxnOB61/vWYqioSq8WFPi6DU4YdRfphYwn HI1Ge/ATN9oyXI61PvqJO2izJ+QPEoikDNc9utPHO5M7uQ1Tu4NKG5ItsJZ3JHZY Vg4XdGJgLjEsa0qsS+5plactG//SswV7g9ztzIZv+llOHnHnwDPrpcaPiYNt0iiP cEf/aE+jfA1joDq0rXOiUu8pUhqW+/Vmly+DI/YH920+CnMGHArX7L35kN5MztYx 8oGcnDvB75F9S0VN+ygwDWiU11wQr626mYkTADWrBOgC0EHiaB3qGESNssQTaHuv N7EPdKeb0ZX57WvLdYoVZT0W32sGyM1l3xWmuxUeNqapdbOF95TkfmikxX80tS/n WrEgDnlknOXLtGUgcwfJ5CaM6t6qNfL9n/aZm9u2bj+pYY83/FEsZ5xXfs7AP58i 078uWp0HisQWPzmON9zyJgXBGpMMEVir5SnHOwe/PVhNHkNt6Uw5LCbs2gwO+bb3 SxapuNmdV3Ua/XvDyfjhAgHtFCXDSBb5/3KXxvkIIAFuVGQ88bATWMf6nnXjP0G7 nIcaGM4zbLqNQ37bZHpqaGbX1ufZVRtLqj1Df/WOe9ebOfDUVOqK/KmqX89DdRAI eCxeSFC4csj/BoVpNngX =9UH4 -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/usb-20180703-pull-request' into staging usb: bugfixes for ehci and xhci. # gpg: Signature made Tue 03 Jul 2018 09:26:20 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/usb-20180703-pull-request: xhci: fix guest-triggerable assert ehci: Don't fetch a NULL current qtd but advance the queue instead. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
ba2dfe6f6f
|
@ -1672,7 +1672,8 @@ static EHCIQueue *ehci_state_fetchqh(EHCIState *ehci, int async)
|
|||
ehci_set_state(ehci, async, EST_HORIZONTALQH);
|
||||
|
||||
} else if ((q->qh.token & QTD_TOKEN_ACTIVE) &&
|
||||
(NLPTR_TBIT(q->qh.current_qtd) == 0)) {
|
||||
(NLPTR_TBIT(q->qh.current_qtd) == 0) &&
|
||||
(q->qh.current_qtd != 0)) {
|
||||
q->qtdaddr = q->qh.current_qtd;
|
||||
ehci_set_state(ehci, async, EST_FETCHQTD);
|
||||
|
||||
|
|
|
@ -1954,7 +1954,12 @@ static void xhci_kick_epctx(XHCIEPContext *epctx, unsigned int streamid)
|
|||
for (i = 0; i < length; i++) {
|
||||
TRBType type;
|
||||
type = xhci_ring_fetch(xhci, ring, &xfer->trbs[i], NULL);
|
||||
assert(type);
|
||||
if (!type) {
|
||||
xhci_die(xhci);
|
||||
xhci_ep_free_xfer(xfer);
|
||||
epctx->kick_active--;
|
||||
return;
|
||||
}
|
||||
}
|
||||
xfer->streamid = streamid;
|
||||
|
||||
|
|
Loading…
Reference in New Issue