Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-10 Thread Yi Sun
On 17-04-10 11:27:04, Yi Sun wrote: > On 17-04-07 03:46:42, Jan Beulich wrote: > > >>> On 07.04.17 at 11:08, wrote: > > > On 17-04-07 02:48:40, Jan Beulich wrote: > > >> >>> On 07.04.17 at 07:17, wrote: > > >> > On 17-04-06 08:02:15, Jan

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-09 Thread Yi Sun
On 17-04-07 03:46:42, Jan Beulich wrote: > >>> On 07.04.17 at 11:08, wrote: > > On 17-04-07 02:48:40, Jan Beulich wrote: > >> >>> On 07.04.17 at 07:17, wrote: > >> > On 17-04-06 08:02:15, Jan Beulich wrote: > >> >> Okay, so not the context

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-07 Thread Jan Beulich
>>> On 07.04.17 at 11:08, wrote: > On 17-04-07 02:48:40, Jan Beulich wrote: >> >>> On 07.04.17 at 07:17, wrote: >> > On 17-04-06 08:02:15, Jan Beulich wrote: >> >> Okay, so not the context switch path then, But you must be >> >> changing the

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-07 Thread Yi Sun
On 17-04-07 02:48:40, Jan Beulich wrote: > >>> On 07.04.17 at 07:17, wrote: > > On 17-04-06 08:02:15, Jan Beulich wrote: > >> Okay, so not the context switch path then, But you must be > >> changing the MSRs _somewhere_, and the question is why this > >> somewhere isn't

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-07 Thread Jan Beulich
>>> On 07.04.17 at 07:17, wrote: > On 17-04-06 08:02:15, Jan Beulich wrote: >> Okay, so not the context switch path then, But you must be >> changing the MSRs _somewhere_, and the question is why this >> somewhere isn't sufficient. >> > Besides the restore behavior in

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-06 Thread Yi Sun
On 17-04-06 08:02:15, Jan Beulich wrote: > >>> On 06.04.17 at 12:02, wrote: > > On 17-04-06 03:34:27, Jan Beulich wrote: > >> >>> On 06.04.17 at 11:22, wrote: > >> > On 17-04-06 02:32:04, Jan Beulich wrote: > >> >> >>> On 06.04.17 at 07:49,

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-06 Thread Yi Sun
On 17-04-06 03:34:27, Jan Beulich wrote: > >>> On 06.04.17 at 11:22, wrote: > > On 17-04-06 02:32:04, Jan Beulich wrote: > >> >>> On 06.04.17 at 07:49, wrote: > >> > On 17-04-05 09:10:58, Jan Beulich wrote: > >> >> >>> On 01.04.17 at 15:53,

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-06 Thread Jan Beulich
>>> On 06.04.17 at 11:22, wrote: > On 17-04-06 02:32:04, Jan Beulich wrote: >> >>> On 06.04.17 at 07:49, wrote: >> > On 17-04-05 09:10:58, Jan Beulich wrote: >> >> >>> On 01.04.17 at 15:53, wrote: >> >> > +static void

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-06 Thread Yi Sun
On 17-04-06 02:32:04, Jan Beulich wrote: > >>> On 06.04.17 at 07:49, wrote: > > On 17-04-05 09:10:58, Jan Beulich wrote: > >> >>> On 01.04.17 at 15:53, wrote: > >> > +static void free_socket_resources(unsigned int socket) > >> > +{ > >> > +

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-06 Thread Jan Beulich
>>> On 06.04.17 at 07:49, wrote: > On 17-04-05 09:10:58, Jan Beulich wrote: >> >>> On 01.04.17 at 15:53, wrote: >> > +static void free_socket_resources(unsigned int socket) >> > +{ >> > +unsigned int i; >> > +struct psr_socket_info

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-05 Thread Yi Sun
On 17-04-05 09:10:58, Jan Beulich wrote: > >>> On 01.04.17 at 15:53, wrote: > > @@ -76,7 +79,7 @@ struct feat_node { > > * > > * Feature independent HW info and common values are also defined in > > it. > > */ > > -const struct feat_props { > > +

Re: [Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-05 Thread Jan Beulich
>>> On 01.04.17 at 15:53, wrote: > @@ -76,7 +79,7 @@ struct feat_node { > * > * Feature independent HW info and common values are also defined in it. > */ > -const struct feat_props { > +struct feat_props { As said before, the const here should

[Xen-devel] [PATCH v10 05/25] x86: refactor psr: L3 CAT: implement CPU init and free flow.

2017-04-01 Thread Yi Sun
This patch implements the CPU init and free flow including L3 CAT initialization and some resources free. It includes below flows: 1. presmp init: - parse command line parameter. - allocate socket info for every socket. - allocate feature resource. - initialize socket info, get