From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH v8 03/13] x86: maintain COS to CBM mapping for each socket Date: Mon, 01 Jun 2015 09:36:15 +0100 Message-ID: <556C359F020000780007F8DF@mail.emea.novell.com> References: <1432197704-20816-1-git-send-email-chao.p.peng@linux.intel.com> <1432197704-20816-4-git-send-email-chao.p.peng@linux.intel.com> <556731A2020000780007E99B@mail.emea.novell.com> <20150529024259.GC18422@pengc-linux.bj.intel.com> <55683A36020000780007ED4D@mail.emea.novell.com> <20150529083831.GF18422@pengc-linux.bj.intel.com> <20150601080507.GA3773@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: <20150601080507.GA3773@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, dario.faggioli@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 01.06.15 at 10:05, wrote: > 2) Unfeasible to allocate memory first and do initialization later in > cpu hotplug notifications. My former approach is performing both the > allocation and initialization in the CPU_STARTING, which is not a good > idea indicated by Jan. Considering info->cos_max = min(opt_cos_max, edx & 0xffff); I don't see why you couldn't do an allocation using opt_cos_max in CPU_UP_PREPARE, potentially not using all of the slots later on. Jan