qemu-e2k/hw/pci-host
Pavel Dovgalyuk 2c9ecdeb9f piix: do not set irq while loading vmstate
This patch avoids setting an irq while loading the state of the ISA bridge.
Because the i8259 has not been deserialized yet, raising an interrupt
could bring the system out-of-sync with the migration source.  For example,
the migration source could have masked the interrupt in the i8259. On the
destination, the i8259 device model would not know that yet and would
trigger an interrupt in the CPU.

This patch eliminates setting the irq and just restores the calculated
state fields in post_load function.  Interrupt state will be deserialized
separately through the IRR field of the i8259.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-09-11 12:20:32 +02:00
..
apb.c iommu: add is_write as a parameter to the translate function of MemoryRegionIOMMUOps 2014-08-28 23:10:22 +02:00
bonito.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
grackle.c pci-host: Consistently set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:23 +01:00
Makefile.objs dec.c - move to pci-bridge 2013-06-02 18:13:37 +03:00
pam.c pci-host: update uncorresponding description 2014-08-15 18:54:06 +04:00
piix.c piix: do not set irq while loading vmstate 2014-09-11 12:20:32 +02:00
ppce500.c hw/pci-host/ppce500: Fix typo in vmstate definition 2014-06-16 13:24:41 +02:00
prep.c memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +02:00
q35.c intel-iommu: add context-cache to cache context-entry 2014-08-28 23:10:22 +02:00
uninorth.c uninorth: Fix PCI hole size 2014-06-27 13:48:24 +02:00
versatile.c pci-host: Consistently set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:23 +01:00