Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-18 Thread Chao Peng
On Tue, Mar 17, 2015 at 09:00:27AM -0400, Konrad Rzeszutek Wilk wrote: > On Tue, Mar 17, 2015 at 04:11:33PM +0800, Chao Peng wrote: > > On Fri, Mar 13, 2015 at 09:40:13AM -0400, Konrad Rzeszutek Wilk wrote: > > > On Fri, Mar 13, 2015 at 06:13:20PM +0800, Chao Peng wrote: > > > > Detect Intel Cache

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-17 Thread Konrad Rzeszutek Wilk
On Tue, Mar 17, 2015 at 04:11:33PM +0800, Chao Peng wrote: > On Fri, Mar 13, 2015 at 09:40:13AM -0400, Konrad Rzeszutek Wilk wrote: > > On Fri, Mar 13, 2015 at 06:13:20PM +0800, Chao Peng wrote: > > > Detect Intel Cache Allocation Technology(CAT) feature and store the > > > cpuid information for la

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-17 Thread Jan Beulich
>>> On 17.03.15 at 09:48, wrote: > On Mon, Mar 16, 2015 at 01:47:06PM +, Jan Beulich wrote: >> >>> On 13.03.15 at 11:13, wrote: >> > @@ -1112,6 +1117,12 @@ The following resources are available: >> >total/local memory bandwidth. Follow the same options with Cache >> > Monitoring >> >

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-17 Thread Chao Peng
On Mon, Mar 16, 2015 at 01:47:06PM +, Jan Beulich wrote: > >>> On 13.03.15 at 11:13, wrote: > > @@ -1112,6 +1117,12 @@ The following resources are available: > >total/local memory bandwidth. Follow the same options with Cache > > Monitoring > >Technology. > > > > +* Cache Alllocatio

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-17 Thread Chao Peng
On Fri, Mar 13, 2015 at 09:40:13AM -0400, Konrad Rzeszutek Wilk wrote: > On Fri, Mar 13, 2015 at 06:13:20PM +0800, Chao Peng wrote: > > Detect Intel Cache Allocation Technology(CAT) feature and store the > > cpuid information for later use. Currently only L3 cache allocation is > > supported. The L

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-16 Thread Jan Beulich
>>> On 13.03.15 at 11:13, wrote: > @@ -1112,6 +1117,12 @@ The following resources are available: >total/local memory bandwidth. Follow the same options with Cache Monitoring >Technology. > > +* Cache Alllocation Technology (Broadwell and later). Information regarding > + the cache allo

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-13 Thread Konrad Rzeszutek Wilk
> > +cat_cpu_init(smp_processor_id()); > > Do 'if (!cat_cpu_init(..)).`' > > as the CPU might not support this. > > At which point you should also free the cat_socket_info and And also set cat_socket_info = NULL. > not register the cpu notifier. > > > +register_cpu_notifier(&cpu_nfb);

Re: [Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-13 Thread Konrad Rzeszutek Wilk
On Fri, Mar 13, 2015 at 06:13:20PM +0800, Chao Peng wrote: > Detect Intel Cache Allocation Technology(CAT) feature and store the > cpuid information for later use. Currently only L3 cache allocation is > supported. The L3 CAT features may vary among sockets so per-socket > feature information is st

[Xen-devel] [PATCH 1/6] x86: detect and initialize Intel CAT feature

2015-03-13 Thread Chao Peng
Detect Intel Cache Allocation Technology(CAT) feature and store the cpuid information for later use. Currently only L3 cache allocation is supported. The L3 CAT features may vary among sockets so per-socket feature information is stored. The initialization can happen either at boot time or when CPU