qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/11] flush state in migration post_load


From: Glauber Costa
Subject: [Qemu-devel] [PATCH 06/11] flush state in migration post_load
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 <address@hidden>
---
 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);
 }
 
-- 
1.6.5.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]