qemu-e2k/hw/pci
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
..
Makefile.objs
msi.c
msix.c
pci_bridge.c
pci_host.c hw/pci/pci_host.c: Avoid shifting left into sign bit 2014-03-27 19:22:49 +04:00
pci-hotplug-old.c Use error_is_set() only when necessary 2014-02-17 11:57:23 -05:00
pci-stub.c
pci.c pci: Fix clearing IRQs on reset 2014-03-31 19:53:34 +01:00
pcie_aer.c
pcie_host.c
pcie_port.c
pcie.c PCIE: fix regression with coldplugged multifunction device 2014-03-09 21:09:37 +02:00
shpc.c
slotid_cap.c