Re: [Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-30 Thread Yi Sun
On 17-08-30 08:47:42, Roger Pau Monn� wrote: > On Wed, Aug 30, 2017 at 01:23:08PM +0800, Yi Sun wrote: > > On 17-08-29 13:00:19, Roger Pau Monn� wrote: > > > On Thu, Aug 24, 2017 at 09:14:36AM +0800, Yi Sun wrote: > > > > --- a/xen/arch/x86/domctl.c > > > > +++ b/xen/arch/x86/domctl.c > > > > @@

Re: [Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-30 Thread Roger Pau Monn�
On Wed, Aug 30, 2017 at 01:23:08PM +0800, Yi Sun wrote: > On 17-08-29 13:00:19, Roger Pau Monn� wrote: > > On Thu, Aug 24, 2017 at 09:14:36AM +0800, Yi Sun wrote: > > > --- a/xen/arch/x86/domctl.c > > > +++ b/xen/arch/x86/domctl.c > > > @@ -1439,60 +1439,60 @@ long arch_do_domctl( > > > }

Re: [Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-29 Thread Yi Sun
On 17-08-29 13:00:19, Roger Pau Monn� wrote: > On Thu, Aug 24, 2017 at 09:14:36AM +0800, Yi Sun wrote: > > --- a/xen/arch/x86/domctl.c > > +++ b/xen/arch/x86/domctl.c > > @@ -1439,60 +1439,60 @@ long arch_do_domctl( > > } > > break; > > > > -case XEN_DOMCTL_psr_cat_op: > >

Re: [Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-29 Thread Roger Pau Monné
On Thu, Aug 24, 2017 at 09:14:36AM +0800, Yi Sun wrote: > --- a/xen/arch/x86/domctl.c > +++ b/xen/arch/x86/domctl.c > @@ -1439,60 +1439,60 @@ long arch_do_domctl( > } > break; > > -case XEN_DOMCTL_psr_cat_op: > -switch ( domctl->u.psr_cat_op.cmd ) > +case

[Xen-devel] [PATCH v2 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-08-23 Thread Yi Sun
This patch renames PSR sysctl/domctl interfaces and related xsm policy to make them be general for all resource allocation features but not only for CAT. Then, we can resuse the interfaces for all allocation features. Basically, it changes 'cat' to 'alloc'. E.g.: 1. psr_cat_op -> psr_alloc_op 2.