From: "Jan Beulich" Subject: Re: [PATCH v7 01/14] x86: add socket_to_cpumask Date: Wed, 20 May 2015 10:00:13 +0100 Message-ID: <555C693D020000780007BFCA@mail.emea.novell.com> References: <1431075415-21917-2-git-send-email-chao.p.peng@linux.intel.com> <555A0384020000780007B2A7@mail.emea.novell.com> <20150519061224.GA8239@pengc-linux.bj.intel.com> <555AF441020000780007B6A1@mail.emea.novell.com> <20150519064721.GB8239@pengc-linux.bj.intel.com> <555AF9B4020000780007B6E5@mail.emea.novell.com> <20150519071039.GC8239@pengc-linux.bj.intel.com> <555B0309020000780007B722@mail.emea.novell.com> <20150519095120.GG8239@pengc-linux.bj.intel.com> <555B2A0C020000780007B8B0@mail.emea.novell.com> <20150520031358.GH8239@pengc-linux.bj.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150520031358.GH8239@pengc-linux.bj.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chao Peng Cc: wei.liu2@citrix.com, Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, will.auld@intel.com, keir@xen.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org >>> On 20.05.15 at 05:13, wrote: > I do have a problem when coming up with the final codes, there are two > possible ways: > 1) Make both num_processors and disabled_cpus public so that they can > be used when calculating nr_sockets. > 2) Add another public function set_nr_sockets in mpparse.c (just like > set_nr_cpu_ids does). > > Which do you prefer? The latter. Jan