From patchwork Mon Feb 9 12:24:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 6196 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n19CQrHq000505 for ; Mon, 9 Feb 2009 12:26:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752885AbZBIM0v (ORCPT ); Mon, 9 Feb 2009 07:26:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753388AbZBIM0v (ORCPT ); Mon, 9 Feb 2009 07:26:51 -0500 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 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n19CQWmC016883; Mon, 9 Feb 2009 07:26:32 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n19CQVh9024680; Mon, 9 Feb 2009 07:26:32 -0500 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 587) id 5085A18D493; Mon, 9 Feb 2009 14:24:00 +0200 (IST) Date: Mon, 9 Feb 2009 14:24:00 +0200 From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] don't call kvm_init_vcpu() twice Message-ID: <20090209122400.GC28969@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org kvm_init_vcpu() is called from pc_new_cpu() Signed-off-by: Gleb Natapov --- 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 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);