kvm/apic: fix 2.2->2.1 migration
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Dec 2014 15:56:46 +0000 (16:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Dec 2014 11:21:02 +0000 (12:21 +0100)
commit575a6f4082c45778b93032ef1e7fbea4467b3a2a
treef2e37755232d9dc23fa0196856b2e6e6c7753820
parent2f9ac42acf4602453d5839221df6cc7cabc3355e
kvm/apic: fix 2.2->2.1 migration

The wait_for_sipi field is set back to 1 after an INIT, so it was not
effective to reset it in kvm_apic_realize.  Introduce a reset callback
and reset wait_for_sipi there.

Reported-by: Igor Mammedov <imammedo@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/kvm/apic.c
hw/intc/apic_common.c
include/hw/i386/apic_internal.h