Re: [Xen-devel] [PATCH v3 03/15] x86: refactor psr: Remove 'struct psr_cat_cbm'.

2016-11-25 Thread Jan Beulich
>>> On 25.10.16 at 05:40, wrote: > struct psr_cat_socket_info { > unsigned int cbm_len; > unsigned int cos_max; > -struct psr_cat_cbm *cos_to_cbm; > +/* > + * Store the values of COS registers: > + * CAT uses 1 entry for one COS ID; > + * CDP uses 2 entries for one C

[Xen-devel] [PATCH v3 03/15] x86: refactor psr: Remove 'struct psr_cat_cbm'.

2016-10-24 Thread Yi Sun
'struct psr_cat_cbm' is defined for L3 CAT only. It is not appropriate for other features. This patch replaces it with a generic array, 'uint64_t cos_reg_val[MAX_COS_REG_NUM]', to save values of COS registers. So 'temp_cos_to_cbm' is not useful anymore, remove it. Signed-off-by: Yi Sun --- xen/a