]> 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)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 11 May 2010 23:02:03 +0000 (02:02 +0300)
commitc3f8f61157625d0bb5bfc135047573de48fdc675
tree3a41eb012612decf7de5fb99297b3d369fefd6e3
parent925fe64ae7b487fdb7bd56fcab63e2f87653c226
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>
hw/pci.c