ehci: update irq on reset
PATCH 1/1 ehci: update irq on reset
After clearing the status register we also have to update the irq line status. Otherwise a irq which happends to be pending at reset time causes a interrupt storm. And the guest can't stop as the status register doesn't indicate any pending interrupt.
Both NetBSD and FreeBSD hang on shutdown because of that.
Reported-by Andrey Korolyov <[email protected]>
Signed-off-by Gerd Hoffmann <[email protected]>
--- hw/usb/hcd-ehci.c | 1 + 1 file changed, 1 insertion(+)
hw/usb/hcd-ehci.c +1 -0
@@ -865,6 +865,7 @@ void ehci_reset(void *opaque) s->usbsts =USBSTS_HALT ; s->usbsts_pending =0 ; s->usbsts_frindex =0 ; +ehci_update_irq (s); s->astate =EST_INACTIVE ; s->pstate =EST_INACTIVE ;
Signature · 1 line
1.8.3.1