From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: [PATCH] don't call kvm_init_vcpu() twice Date: Mon, 9 Feb 2009 14:24:00 +0200 Message-ID: <20090209122400.GC28969@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:42888 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752885AbZBIM0u (ORCPT ); Mon, 9 Feb 2009 07:26:50 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n19CQoFh011369 for ; Mon, 9 Feb 2009 07:26:50 -0500 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: kvm_init_vcpu() is called from pc_new_cpu() Signed-off-by: Gleb Natapov 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); -- Gleb.