Cole Robinson 58b590148c pci: Fix clearing IRQs on reset
irq_state is cleared before calling pci_device_deassert_intx, but the
latter misbehaves if the former isn't accurate. In this case, any raised
IRQs are not cleared, which hits an assertion in pcibus_reset:

qemu-system-x86_64: hw/pci/pci.c:250: pcibus_reset: Assertion
`bus->irq_count[i] == 0' failed.

pci_device_deassert_intx should clear irq_state anyways, so add
an assert.

This fixes migration with usb2 + usb-tablet.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Message-id: 7da1ad94ce027183b4049c2de370cb191b0073c1.1396290569.git.crobinso@redhat.com
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2014-03-31 19:53:34 +01:00
2014-03-31 19:53:34 +01:00
2014-03-31 19:28:38 +02:00
2014-03-13 20:15:37 +01:00
2014-03-13 20:15:37 +01:00
2014-03-25 14:09:50 +01:00
2014-03-26 05:33:02 +01:00
2014-03-28 13:46:29 +00:00
2014-03-28 13:46:29 +00:00
2014-03-19 19:47:15 +01:00
2014-03-17 11:50:19 +00:00
2014-03-27 15:19:00 +05:30
2014-03-27 15:19:00 +05:30
2014-03-17 13:21:11 +01:00
2014-03-27 15:19:00 +05:30
2014-03-27 15:19:00 +05:30
2014-03-13 20:08:15 -07:00
2014-03-27 15:19:00 +05:30

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%