Re: [Xen-devel] [PATCH v10 13/25] x86: refactor psr: L3 CAT: set value: implement write msr flow.

2017-04-11 Thread Yi Sun
On 17-04-11 09:25:28, Jan Beulich wrote: > >>> On 01.04.17 at 15:53, wrote: > > +static void do_write_psr_msr(void *data) > > +{ > > +struct cos_write_info *info = data; > > +unsigned int cos= info->cos; > > +struct feat_node *feat = info->feature; > > + > > +if (

Re: [Xen-devel] [PATCH v10 13/25] x86: refactor psr: L3 CAT: set value: implement write msr flow.

2017-04-11 Thread Jan Beulich
>>> On 01.04.17 at 15:53, wrote: > +static void do_write_psr_msr(void *data) > +{ > +struct cos_write_info *info = data; > +unsigned int cos= info->cos; > +struct feat_node *feat = info->feature; > + > +if ( cos > feat->props->cos_max ) > +return; This che

[Xen-devel] [PATCH v10 13/25] x86: refactor psr: L3 CAT: set value: implement write msr flow.

2017-04-01 Thread Yi Sun
Continue from previous patch: 'x86: refactor psr: L3 CAT: set value: implement cos id picking flow.' We have got the feature value and COS ID to set. Then, we write MSR of the designated feature. Till now, set value process is completed. Signed-off-by: Yi Sun --- v10: - remove 'type' from '