ehci: update irq on reset
commit5a8660741a8aa19fbf8a5e8a2b3aac88664f4e66
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jan 2016 11:44:44 +0000 (19 12:44 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 2 Feb 2016 13:11:01 +0000 (2 14:11 +0100)
tree0130454477575b17706008130da7ad0e1f916395
parent49d925ce50383a286278143c05511d30ec41a36e
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 <andrey@xdel.ru>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1453203884-4125-1-git-send-email-kraxel@redhat.com
hw/usb/hcd-ehci.c