| Submitter | Glauber Costa |
|---|---|
| Date | Dec. 1, 2009, 12:51 p.m. |
| Message ID | <1259671897-22232-7-git-send-email-glommer@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/39903/ |
| State | New |
| Headers | show |
Comments
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); }
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(-)