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 =
>>> 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,
> +
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