Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-05 Thread Yi Sun
On 17-10-05 02:55:17, Jan Beulich wrote: > >>> On 05.10.17 at 06:48, wrote: > > On 17-10-03 23:59:46, Jan Beulich wrote: > >> >>> Yi Sun 09/29/17 4:58 AM >>> > >> >On 17-09-28 05:36:11, Jan Beulich wrote: > >> >> >>> On 23.09.17 at 11:48, wrote: [...] > >> >> > { > >> >> > const struct co

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-05 Thread Yi Sun
On 17-10-05 03:39:06, Jan Beulich wrote: > >>> On 05.10.17 at 10:39, wrote: > > On Thu, Oct 05, 2017 at 04:48:12AM +, Yi Sun wrote: > >> On 17-10-03 23:59:46, Jan Beulich wrote: > >> > >>> Yi Sun 09/29/17 4:58 AM >>> > >> > >On 17-09-28 05:36:11, Jan Beulich wrote: > >> > >> >>> On 23.09.17 a

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-05 Thread Jan Beulich
>>> On 05.10.17 at 10:39, wrote: > On Thu, Oct 05, 2017 at 04:48:12AM +, Yi Sun wrote: >> On 17-10-03 23:59:46, Jan Beulich wrote: >> > >>> Yi Sun 09/29/17 4:58 AM >>> >> > >On 17-09-28 05:36:11, Jan Beulich wrote: >> > >> >>> On 23.09.17 at 11:48, wrote: >> > >> > -feat->cos_reg

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-05 Thread Jan Beulich
>>> On 05.10.17 at 06:48, wrote: > On 17-10-03 23:59:46, Jan Beulich wrote: >> >>> Yi Sun 09/29/17 4:58 AM >>> >> >On 17-09-28 05:36:11, Jan Beulich wrote: >> >> >>> On 23.09.17 at 11:48, wrote: >> >> > This patch implements set value flow for MBA including its callback >> >> > function and domc

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-05 Thread Roger Pau Monné
On Thu, Oct 05, 2017 at 04:48:12AM +, Yi Sun wrote: > On 17-10-03 23:59:46, Jan Beulich wrote: > > >>> Yi Sun 09/29/17 4:58 AM >>> > > >On 17-09-28 05:36:11, Jan Beulich wrote: > > >> >>> On 23.09.17 at 11:48, wrote: > > >> > -feat->cos_reg_val[cos * cos_num + i] = info->val[i]; >

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-04 Thread Yi Sun
On 17-10-03 23:59:46, Jan Beulich wrote: > >>> Yi Sun 09/29/17 4:58 AM >>> > >On 17-09-28 05:36:11, Jan Beulich wrote: > >> >>> On 23.09.17 at 11:48, wrote: > >> > This patch implements set value flow for MBA including its callback > >> > function and domctl interface. > >> > > >> > It also chan

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-10-03 Thread Jan Beulich
>>> Yi Sun 09/29/17 4:58 AM >>> >On 17-09-28 05:36:11, Jan Beulich wrote: >> >>> On 23.09.17 at 11:48, wrote: >> > This patch implements set value flow for MBA including its callback >> > function and domctl interface. >> > >> > It also changes the memebers in 'cos_write_info' to transfer the >>

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-28 Thread Yi Sun
On 17-09-28 05:36:11, Jan Beulich wrote: > >>> On 23.09.17 at 11:48, wrote: > > This patch implements set value flow for MBA including its callback > > function and domctl interface. > > > > It also changes the memebers in 'cos_write_info' to transfer the > > feature array, feature properties arr

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-28 Thread Jan Beulich
>>> On 23.09.17 at 11:48, wrote: > This patch implements set value flow for MBA including its callback > function and domctl interface. > > It also changes the memebers in 'cos_write_info' to transfer the > feature array, feature properties array and value array. Then, we > can write all features

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-28 Thread Jan Beulich
>>> On 28.09.17 at 04:39, wrote: > On 17-09-26 10:39:31, Roger Pau Monn wrote: >> On Sat, Sep 23, 2017 at 09:48:16AM +, Yi Sun wrote: >> > @@ -274,29 +277,6 @@ static enum psr_feat_type psr_type_to_feat_type(enum >> > psr_type type) >> > return feat_type; >> > } >> > >> > -static bool

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-27 Thread Yi Sun
On 17-09-26 10:39:31, Roger Pau Monn� wrote: > On Sat, Sep 23, 2017 at 09:48:16AM +, Yi Sun wrote: > > @@ -274,29 +277,6 @@ static enum psr_feat_type psr_type_to_feat_type(enum > > psr_type type) > > return feat_type; > > } > > > > -static bool psr_check_cbm(unsigned int cbm_len, unsig

Re: [Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-26 Thread Roger Pau Monné
On Sat, Sep 23, 2017 at 09:48:16AM +, Yi Sun wrote: > @@ -274,29 +277,6 @@ static enum psr_feat_type psr_type_to_feat_type(enum > psr_type type) > return feat_type; > } > > -static bool psr_check_cbm(unsigned int cbm_len, unsigned long cbm) > -{ > -unsigned int first_bit, zero_bit;

[Xen-devel] [PATCH v4 07/15] x86: implement set value flow for MBA

2017-09-23 Thread Yi Sun
This patch implements set value flow for MBA including its callback function and domctl interface. It also changes the memebers in 'cos_write_info' to transfer the feature array, feature properties array and value array. Then, we can write all features values on the cos id into MSRs. Because mult