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 Makefile.target: CONFIG_NO_* variables removed 2013-10-16 18:21:00 +02:00
msi.c exec: Make stl_*_phys input an AddressSpace 2014-02-11 22:57:18 +10:00
msix.c exec: Make stl_*_phys input an AddressSpace 2014-02-11 22:57:18 +10:00
pci_bridge.c acpi,pci,pc,fedora,virtio fixes and enhancements 2014-01-10 11:04:48 -08:00
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 bswap.h: Remove cpu_to_be32wu() 2013-11-05 19:57:47 -08:00
pcie_host.c
pcie_port.c pci/pcie: convert PCIE hotplug to use hotplug-handler API 2014-02-10 10:27:00 +02:00
pcie.c PCIE: fix regression with coldplugged multifunction device 2014-03-09 21:09:37 +02:00
shpc.c pci/shpc: convert SHPC hotplug to use hotplug-handler API 2014-02-10 10:27:00 +02:00
slotid_cap.c