From: "Jan Beulich" Subject: Re: [PATCH v7 04/14] x86: maintain COS to CBM mapping for each socket Date: Mon, 18 May 2015 14:35:39 +0100 Message-ID: <555A06CB020000780007B2E1@mail.emea.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431075415-21917-5-git-send-email-chao.p.peng@linux.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 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? Jan