]> xenbits.xensource.com Git - qemu-upstream-unstable.git/commit
kvm/apic: fix 2.2->2.1 migration
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Dec 2014 15:56:46 +0000 (16:56 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 2 Mar 2015 00:13:00 +0000 (18:13 -0600)
commit3e04f97cbc904fc8196774758c76343b3ee9ef6a
tree3db521a694e4ea7cbd7203edc1cd255ad0e3ac04
parent00fd8904f6383fca1c25e24d45a00960b0417749
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>
(cherry picked from commit 575a6f4082c45778b93032ef1e7fbea4467b3a2a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/kvm/apic.c
hw/intc/apic_common.c
include/hw/i386/apic_internal.h