Re: [Xen-devel] [PATCH v7 04/14] x86: maintain COS to CBM mapping for each socket

2015-05-19 Thread Chao Peng
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 & 0x); > > > > +info->cos_to_cbm =

Re: [Xen-devel] [PATCH v7 04/14] x86: maintain COS to CBM mapping for each socket

2015-05-18 Thread Jan Beulich
>>> 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 & 0x); > > +info->cos_to_cbm = xzalloc_array(struct psr_cat_cbm, > +

[Xen-devel] [PATCH v7 04/14] x86: maintain COS to CBM mapping for each socket

2015-05-08 Thread Chao Peng
For each socket, a COS to CBM mapping structure is maintained for each COS. The mapping is indexed by COS and the value is the corresponding CBM. Different VMs may use the same CBM, a reference count is used to indicate if the CBM is available. Signed-off-by: Chao Peng Reviewed-by: Andrew Cooper