From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ME4Sy-0002rR-7N for qemu-devel@nongnu.org; Tue, 09 Jun 2009 12:46:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ME4St-0002pc-Ca for qemu-devel@nongnu.org; Tue, 09 Jun 2009 12:46:27 -0400 Received: from [199.232.76.173] (port=38430 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ME4St-0002pY-65 for qemu-devel@nongnu.org; Tue, 09 Jun 2009 12:46:23 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ME4Ss-0008WB-KP for qemu-devel@nongnu.org; Tue, 09 Jun 2009 12:46:22 -0400 Date: Tue, 9 Jun 2009 13:52:21 -0300 From: Glauber Costa Subject: Re: [Qemu-devel] [PATCH] provide cpu_index to env mapping Message-ID: <20090609165221.GR11966@poweredge.glommer> References: <1244564118-428-1-git-send-email-glommer@redhat.com> <4A2E8CDE.7050507@redhat.com> <20090609164009.GP11966@poweredge.glommer> <4A2E9102.6000100@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A2E9102.6000100@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Tue, Jun 09, 2009 at 07:42:42PM +0300, Avi Kivity wrote: > Glauber Costa wrote: >> On Tue, Jun 09, 2009 at 07:25:02PM +0300, Avi Kivity wrote: >> >>> Glauber Costa wrote: >>> >>>> There are some people interested in, given a cpu number, >>>> pick its CPUState. KVM is an example, although not yet in tree. >>>> This patch provides a way of doing that. >>>> >>>> >>> I think it's better to migrate kvm towards using env as the handle >>> instead of the cpu index. >>> >> btw: the particular user of this is cpu hotplug. >> > > Well, cpu hotplug should definitely use the apic id. yes.