Re: [Xen-devel] [PATCH v10 17/25] x86: refactor psr: CDP: implement set value callback functions.

2017-04-11 Thread Yi Sun
On 17-04-11 10:03:21, Jan Beulich wrote: > >>> On 01.04.17 at 15:53, wrote: > > @@ -94,6 +102,13 @@ struct feat_node { > > unsigned int cos_max; > > unsigned int cbm_len; > > > > +/* > > + * An array to save all 'enum cbm_type' values of the feature. It > > is

Re: [Xen-devel] [PATCH v10 17/25] x86: refactor psr: CDP: implement set value callback functions.

2017-04-11 Thread Jan Beulich
>>> On 01.04.17 at 15:53, wrote: > @@ -94,6 +102,13 @@ struct feat_node { > unsigned int cos_max; > unsigned int cbm_len; > > +/* > + * An array to save all 'enum cbm_type' values of the feature. It is > + * used with cos_num together to get/write a feat

[Xen-devel] [PATCH v10 17/25] x86: refactor psr: CDP: implement set value callback functions.

2017-04-01 Thread Yi Sun
This patch implements L3 CDP set value related callback functions. With this patch, 'psr-cat-cbm-set' command can work for L3 CDP. Signed-off-by: Yi Sun --- v10: - remove 'l3_cdp_get_old_val' and use 'l3_cdp_get_val' to replace it. (suggested by Jan Beulich) - remove 'l3_cdp_set_ne