From: Gerd Hoffmann Date: Tue, 19 Jan 2016 11:44:44 +0000 (+0100) Subject: ehci: update irq on reset X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5a8660741a8aa19fbf8a5e8a2b3aac88664f4e66;p=qmiga%2Fqemu.git 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. Cc: qemu-stable@nongnu.org Reported-by: Andrey Korolyov Signed-off-by: Gerd Hoffmann Message-id: 1453203884-4125-1-git-send-email-kraxel@redhat.com --- diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 93601d9627..1b50601fc1 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -866,6 +866,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;