From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Peng Subject: Re: [PATCH v7 04/14] x86: maintain COS to CBM mapping for each socket Date: Tue, 19 May 2015 15:41:54 +0800 Message-ID: <20150519074154.GE8239@pengc-linux.bj.intel.com> References: <1431075415-21917-1-git-send-email-chao.p.peng@linux.intel.com> <1431075415-21917-5-git-send-email-chao.p.peng@linux.intel.com> <555A06CB020000780007B2E1@mail.emea.novell.com> Reply-To: Chao Peng Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <555A06CB020000780007B2E1@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich 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 Mon, May 18, 2015 at 02:35:39PM +0100, Jan Beulich wrote: > >>> On 08.05.15 at 10:56, wrote: > > @@ -237,6 +243,14 @@ static void cat_cpu_init(void) > > info->cbm_len = (eax & 0x1f) + 1; > > info->cos_max = min(opt_cos_max, edx & 0xffff); > > > > + info->cos_to_cbm = xzalloc_array(struct psr_cat_cbm, > > + info->cos_max + 1UL); > > How does the array dimension here match the "for each socket" > in the title? info is already per-socket data so the dimension here is for only one socket. Chao