Re: [Xen-devel] [PATCH v4] x86: psr: support co-exist features' values setting

2017-10-11 Thread Yi Sun
On 17-10-11 14:59:23, Chao Peng wrote: > On Wed, 2017-10-11 at 09:55 +0800, Yi Sun wrote: > >  static void do_write_psr_msrs(void *data) > >  { > > -const struct cos_write_info *info = data; > > -struct feat_node *feat = info->feature; > > -const struct feat_props *props = info->props;

Re: [Xen-devel] [PATCH v4] x86: psr: support co-exist features' values setting

2017-10-11 Thread Chao Peng
On Wed, 2017-10-11 at 09:55 +0800, Yi Sun wrote: > The whole value array is transferred into 'do_write_psr_msrs'. Then, > we can > write all features values on the cos id into MSRs. > > Because multiple features may co-exist, we need handle all features to > write > values of them into a COS regis

[Xen-devel] [PATCH v4] x86: psr: support co-exist features' values setting

2017-10-10 Thread Yi Sun
The whole value array is transferred into 'do_write_psr_msrs'. Then, we can write all features values on the cos id into MSRs. Because multiple features may co-exist, we need handle all features to write values of them into a COS register with new COS ID. E.g: 1. L3 CAT and L2 CAT co-exist. 2. Dom