From patchwork Wed Dec 2 13:48:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06/11] flush state in migration post_load From: Glauber Costa X-Patchwork-Id: 40076 Message-Id: <1259761702-4041-7-git-send-email-glommer@redhat.com> To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, avi@redhat.com Date: Wed, 2 Dec 2009 11:48:17 -0200 This have already been identified in qemu-kvm. We have to synchronously tell the kernel about the APIC state. Otherwise, other cpus can see bogus state for this lapic. Signed-off-by: Glauber Costa --- hw/apic-kvm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/apic-kvm.c b/hw/apic-kvm.c index 9e9790f..b2864b6 100644 --- a/hw/apic-kvm.c +++ b/hw/apic-kvm.c @@ -73,6 +73,8 @@ static int apic_post_load(void *opaque, int version_id) { APICState *s = opaque; + cpu_flush_state(s->cpu_env); + return kvm_set_lapic(s->cpu_env, &s->kvm_lapic_state); }