Received: from eggs.gnu.org ([2001:4830:134:3::10]:40069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQWWw-0002ck-RB for qemu-devel@nongnu.org; Thu, 20 Mar 2014 02:32:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQWWs-0004HK-8A for qemu-devel@nongnu.org; Thu, 20 Mar 2014 02:32:42 -0400 Received: from [222.73.24.84] (port=20504 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQWWr-0004GH-RW for qemu-devel@nongnu.org; Thu, 20 Mar 2014 02:32:38 -0400 Message-ID: <1395296713.12213.36.camel@G08FNSTD131468> From: Chen Fan Date: Thu, 20 Mar 2014 14:25:13 +0800 In-Reply-To: <20140319192720.GB10819@otherpad.lan.raisama.net> References: <4a59cec63fabbf5542d2fd4a046ce8383bbf3594.1395217538.git.chen.fan.fnst@cn.fujitsu.com> <20140319192720.GB10819@otherpad.lan.raisama.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH v1 2/4] i386: use CpuTopoInfo instead apic_id as argument for pc_new_cpu() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Igor Mammedov , qemu-devel@nongnu.org, Andreas =?ISO-8859-1?Q?F=E4rber?= On Wed, 2014-03-19 at 16:27 -0300, Eduardo Habkost wrote: > On Wed, Mar 19, 2014 at 04:53:41PM +0800, Chen Fan wrote: > > introduce x86_cpu_topo_ids_from_index() to calculate the cpu topology > > information, and the compat old mode mechanism moved into there. > > remove unused funciton x86_apicid_from_cpu_idx(). > > > > Signed-off-by: Chen Fan > [...] > > -static inline apic_id_t x86_apicid_from_cpu_idx(unsigned nr_cores, > > - unsigned nr_threads, > > - unsigned cpu_index) > > +static inline void x86_topo_ids_from_apic_id(unsigned nr_cores, > > + unsigned nr_threads, > > + apic_id_t apic_id, > > + X86CPUTopoInfo *topo) > > You need to squash this patch and patch 3/4 together, otherwise we get > unit test failures in the intermediate tree. Ok, this patches will come soon. Thanks > > Otherwise, patch looks good. >