apic: Fix legacy vmstate loading for KVM
commita4aecd2819fd31641ab62472e3385073043521fb
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 5 Feb 2012 11:45:20 +0000 (5 12:45 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 8 Feb 2012 17:57:51 +0000 (8 15:57 -0200)
treee4812b4e215e805fdbd3828f44cd26dd4eed0bdc
parent3d4b26494fdce89354dac49ef909356ccda77914
apic: Fix legacy vmstate loading for KVM

Also in case of loading pre-vmstate machines, we also need to open-code
the reading of the timer expires value and instead call the post_load
callback to apply it (or not). This fixes loading of legacy states into
the KVM APIC.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/apic_common.c