]> git.proxmox.com Git - qemu.git/commit
pci: irq_state vmstate breakage
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 9 May 2010 16:15:16 +0000 (19:15 +0300)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 18 May 2010 11:27:46 +0000 (13:27 +0200)
commit9f6a84bc438df9397824276a8c2ec65c7f68bcf2
tree1ba5ad373cd12d21c87f2070758470395f57ad23
parent8cef921d18025b4ce4e749eed391308033fee232
pci: irq_state vmstate breakage

Code for saving irq_state got vm_state
macros wrong, passing in the wrong parameter.
As a result, we both saved a wrong value
and restored it to a wrong offset.

This leads to device and bus irq counts getting
out of sync, which in turn leads to interrupts getting lost or
never cleared, such as
https://bugzilla.redhat.com/show_bug.cgi?id=588133

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
(cherry picked from commit c3f8f61157625d0bb5bfc135047573de48fdc675)
hw/pci.c