diff mbox

[06/11] flush state in migration post_load

Message ID 1259761702-4041-7-git-send-email-glommer@redhat.com
State New
Headers show

Commit Message

Glauber Costa Dec. 2, 2009, 1:48 p.m. UTC
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 <glommer@redhat.com>
---
 hw/apic-kvm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff mbox

Patch

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);
 }