From: Hollis Blanchard Subject: Re: [PATCH 1/4] Introduce kvm_vcpu_is_bsp() function. Date: Mon, 08 Jun 2009 11:53:37 -0500 Message-ID: <1244480017.16253.27.camel@slate.austin.ibm.com> References: <1244453578-29857-1-git-send-email-gleb@redhat.com> <1244453578-29857-2-git-send-email-gleb@redhat.com> <4A2CF3EC.4050607@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , kvm@vger.kernel.org, Carsten Otte , "Zhang, Xiantao" To: Avi Kivity Return-path: Received: from e31.co.us.ibm.com ([32.97.110.149]:33955 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbZFHQxk (ORCPT ); Mon, 8 Jun 2009 12:53:40 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e31.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n58GnR3V021145 for ; Mon, 8 Jun 2009 10:49:27 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n58Grf4C194692 for ; Mon, 8 Jun 2009 10:53:42 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n58GrehU022230 for ; Mon, 8 Jun 2009 10:53:41 -0600 In-Reply-To: <4A2CF3EC.4050607@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2009-06-08 at 14:20 +0300, Avi Kivity wrote: > Gleb Natapov wrote: > > @@ -130,6 +130,7 @@ struct kvm { > > int nmemslots; > > struct kvm_memory_slot memslots[KVM_MEMORY_SLOTS + > > KVM_PRIVATE_MEM_SLOTS]; > > + struct kvm_vcpu *bsp_vcpu; > > struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; > > struct list_head vm_list; > > struct kvm_io_bus mmio_bus; > > > > The concept of bsp (boot processor) is limited IIUC to x86 and ia64 That is true. > please wrap with HAVE_KVM_IRQCHIP (which is a close approximation). I don't know about that... I've definitely thought about implementing an in-kernel PIC for PowerPC. (That will make more sense as an optimization once the processors with hypervisor support start hitting the market.) -- Hollis Blanchard IBM Linux Technology Center