Re: [Xen-devel] [PATCH v15 13/23] x86: refactor psr: CDP: implement CPU init flow.

2017-08-02 Thread Jan Beulich
>>> Yi Sun 08/02/17 5:12 PM >>> >On 17-08-02 06:35:46, Jan Beulich wrote: >> >>> Yi Sun 08/01/17 11:04 AM >>> >> >@@ -1278,15 +1339,31 @@ static void psr_cpu_init(void) >> >cpuid_count_leaf(PSR_CPUID_LEVEL_CAT, 0, ®s); >> >if ( regs.b & PSR_RESOURCE_TYPE_L3 ) >> >{ >> >+bool do_l3_cat_ini

Re: [Xen-devel] [PATCH v15 13/23] x86: refactor psr: CDP: implement CPU init flow.

2017-08-02 Thread Yi Sun
On 17-08-02 06:35:46, Jan Beulich wrote: > >>> Yi Sun 08/01/17 11:04 AM >>> > >@@ -1278,15 +1339,31 @@ static void psr_cpu_init(void) > >cpuid_count_leaf(PSR_CPUID_LEVEL_CAT, 0, ®s); > >if ( regs.b & PSR_RESOURCE_TYPE_L3 ) > >{ > >+bool do_l3_cat_init = true; > >+ > >cpuid_count_leaf(PSR_C

Re: [Xen-devel] [PATCH v15 13/23] x86: refactor psr: CDP: implement CPU init flow.

2017-08-02 Thread Jan Beulich
>>> Yi Sun 08/01/17 11:04 AM >>> >@@ -1278,15 +1339,31 @@ static void psr_cpu_init(void) >cpuid_count_leaf(PSR_CPUID_LEVEL_CAT, 0, ®s); >if ( regs.b & PSR_RESOURCE_TYPE_L3 ) >{ >+bool do_l3_cat_init = true; >+ >cpuid_count_leaf(PSR_CPUID_LEVEL_CAT, 1, ®s); > >feat = feat_l3; >feat_l3 = NU

Re: [Xen-devel] [PATCH v15 13/23] x86: refactor psr: CDP: implement CPU init flow.

2017-08-01 Thread Wei Liu
On Tue, Aug 01, 2017 at 04:48:44PM +0800, Yi Sun wrote: > This patch implements the CPU init flow for CDP. The flow is almost > same as L3 CAT. > > Signed-off-by: Yi Sun As far as I can tell, Jan's comment is addressed. FWIW: Reviewed-by: Wei Liu _

[Xen-devel] [PATCH v15 13/23] x86: refactor psr: CDP: implement CPU init flow.

2017-08-01 Thread Yi Sun
This patch implements the CPU init flow for CDP. The flow is almost same as L3 CAT. Signed-off-by: Yi Sun --- v15: - refine process in 'psr_cpu_init' to remove the 'goto'. (suggested by Jan Beulich) v14: - remove the 'Notes' in commit message because a stub function is impleme