ioapic: Add support for qemu-kvm's vmstate v2
commit5dce499948e4a4abe62f010baf4a7ed3d49e53cb
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 3 Feb 2011 21:54:13 +0000 (3 22:54 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Feb 2011 12:33:26 +0000 (4 06:33 -0600)
tree4ed7d99728f01b701663f6066636cf74751c95e2
parent35a74c5c5941b474d8b985237e1bde0b8cd2a20f
ioapic: Add support for qemu-kvm's vmstate v2

qemu-kvm carries the IOAPIC base address in its v2 vmstate. We only
support the default base address so far, and saving even that in the
device state was rejected.

Add a padding field to be able to read qemu-kvm's old state, but
increase our version to 3, indicating that we are not saving a valid
address. This also gives downstream the chance to change to stop
evaluating the base_address and move to v3 as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ioapic.c