Fix migration failure with in-kernel IOAPIC emulation
commit94970d7b4a36d6c8cffce4c6edb7f413730c3204
authorChris Lalancette <clalance@redhat.com>
Tue, 5 Feb 2008 15:58:05 +0000 (5 10:58 -0500)
committerAvi Kivity <avi@qumranet.com>
Sun, 10 Feb 2008 09:30:52 +0000 (10 11:30 +0200)
tree5d70fe9b16a3a774ef581115ffa6a2b77b0cb7a5
parent1523382f81f278e3fe2484088b6f81423c0418b8
Fix migration failure with in-kernel IOAPIC emulation

Save and restore the ioapic base address and irr as part of the ioapic state.

This was tested by doing all the combinations of new and old QEMU versions;
the results were the same as last time:

old -> old: Bug
old -> new: Sane values, but not transferred over the wire
new -> old: Graceful fail, version mismatch
new -> new: Fixed values, taken from the wire

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/apic.c