diff mbox

don't call kvm_init_vcpu() twice

Message ID 20090209122400.GC28969@redhat.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Gleb Natapov Feb. 9, 2009, 12:24 p.m. UTC
kvm_init_vcpu() is called from pc_new_cpu()

Signed-off-by: Gleb Natapov <gleb@redhat.com>
--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity Feb. 9, 2009, 1:45 p.m. UTC | #1
Gleb Natapov wrote:
> kvm_init_vcpu() is called from pc_new_cpu()
>
>   

Applied, thanks.
diff mbox

Patch

diff --git a/qemu/hw/acpi.c b/qemu/hw/acpi.c
index b998225..7ec9161 100644
--- a/qemu/hw/acpi.c
+++ b/qemu/hw/acpi.c
@@ -779,9 +779,6 @@  void qemu_system_cpu_hot_add(int cpu, int state)
             fprintf(stderr, "cpu %d creation failed\n", cpu);
             return;
         }
-#ifdef USE_KVM
-        kvm_init_vcpu(env);
-#endif
     }
 
     qemu_set_irq(pm_state->irq, 1);