qemu-e2k/hw
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
..
9pfs hw/9pfs: use g_strdup_printf() instead of PATH_MAX limitation 2014-03-04 00:57:57 +05:30
acpi acpi: Assert sts array limit on AcpiCpuHotplug_add() 2014-03-18 16:08:43 +02:00
alpha
arm hw/arm: Stop specifying integratorcp as the default board 2014-03-27 14:00:53 +00:00
audio audio: Add 'static' attributes to several variables 2014-03-15 13:54:18 +04:00
block dataplane: fix implicit IOThread refcount 2014-03-19 09:45:25 +01:00
bt
char pl011: fix incorrect logic to set the RXFF flag 2014-03-18 19:38:56 +00:00
core PowerPC queue for 2.0 2014-03-20 11:45:38 +00:00
cpu
cris
display ui/vnc: fix vmware VGA incompatiblities 2014-03-18 08:21:24 +01:00
dma qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
gpio
i2c
i386 acpi,pc,build bug fixes 2014-03-28 13:46:29 +00:00
ide hw/ide: Add missing 'static' attributes 2014-03-27 19:22:48 +04:00
input pckbd: return 'keyboard enabled' on read input port command 2014-03-09 21:09:38 +02:00
intc PowerPC queue for 2.0 2014-03-27 17:08:30 +00:00
ipack
isa
lm32
m68k
microblaze
mips
misc vfio: Cosmetic error reporting fixes 2014-03-25 12:08:52 -06:00
moxie moxie: fix load_elf() usage 2014-03-05 03:06:46 +01:00
net virtio-net: add vlan receive state to RxFilterInfo 2014-03-26 12:49:10 +02:00
nvram vl.c: Extend get_boot_devices_list() to ignore suffixes 2014-03-20 02:40:07 +01:00
openrisc
pci pci: Fix clearing IRQs on reset 2014-03-31 19:53:34 +01:00
pci-bridge
pci-host hw/pci-host/apb.c: Avoid shifting left into sign bit 2014-03-27 19:22:49 +04:00
pcmcia qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
ppc hw/ppc: Avoid shifting left into sign bit 2014-03-27 19:22:49 +04:00
s390x qom: Add check() argument to object_property_add_link() 2014-03-19 22:23:13 +01:00
scsi spapr_vscsi: remove duplicate condition check 2014-03-26 13:19:22 +01:00
sd ssi: Convert legacy SSI_SLAVE -> DEVICE casts 2014-03-12 20:13:02 +01:00
sh4 cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
sparc
sparc64
ssi ssi: Convert legacy SSI_BUS -> BUS casts 2014-03-12 20:13:02 +01:00
timer acpi,pc,build bug fixes 2014-03-28 13:46:29 +00:00
tpm
unicore32 console: add head to index to qemu consoles. 2014-03-05 09:52:04 +01:00
usb hw/usb/hcd-ohci.c: Avoid shifting left into sign bit 2014-03-27 19:22:49 +04:00
virtio virtio-rng: Avoid default_backend refcount leak 2014-03-19 22:23:47 +01:00
watchdog
xen
xtensa
Makefile.objs hw/9pfs: Include virtio-9p-device.o in build 2014-03-04 09:20:49 +05:30