Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-15 Thread Dario Faggioli
Hey, 2 things first: - can you avoid HTML emails? - can you trim the quotes, which means only leaving in the reply message the bits of the conversation that are useful for bringing it forward, and cut the rest (I'm doing this in this mail too) On Thu, 2015-05-14 at 17:27 -0500, Chong Li w

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-14 Thread Chong Li
On Mon, May 11, 2015 at 1:57 AM, Jan Beulich wrote: > >>> On 11.05.15 at 00:04, wrote: > > On Fri, May 8, 2015 at 2:49 AM, Jan Beulich wrote: > >> >>> On 07.05.15 at 19:05, wrote: > >> > @@ -1110,6 +1113,67 @@ rt_dom_cntl( > >> > } > >> > spin_unlock_irqrestore(&prv->lock, fl

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-14 Thread Chong Li
On Mon, May 11, 2015 at 8:11 AM, Dario Faggioli wrote: > On Thu, 2015-05-07 at 12:05 -0500, Chong Li wrote: > > Add two hypercalls(XEN_DOMCTL_SCHEDOP_getvcpuinfo/putvcpuinfo) to > get/set a domain's > > per-VCPU parameters. Hypercalls are handled in function rt_dom_cntl. > > > And that is because

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-11 Thread Dario Faggioli
On Thu, 2015-05-07 at 12:05 -0500, Chong Li wrote: > Add two hypercalls(XEN_DOMCTL_SCHEDOP_getvcpuinfo/putvcpuinfo) to get/set a > domain's > per-VCPU parameters. Hypercalls are handled in function rt_dom_cntl. > And that is because, right now, only code in sched_rt.c is able to deal with per-vcp

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-10 Thread Jan Beulich
>>> On 11.05.15 at 00:04, wrote: > On Fri, May 8, 2015 at 2:49 AM, Jan Beulich wrote: >> >>> On 07.05.15 at 19:05, wrote: >> > @@ -1110,6 +1113,67 @@ rt_dom_cntl( >> > } >> > spin_unlock_irqrestore(&prv->lock, flags); >> > break; >> > +case XEN_DOMCTL_SCHEDOP_getvc

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-10 Thread Chong Li
On Fri, May 8, 2015 at 2:49 AM, Jan Beulich wrote: > >>> On 07.05.15 at 19:05, wrote: > > --- a/xen/common/sched_rt.c > > +++ b/xen/common/sched_rt.c > > @@ -1085,6 +1085,9 @@ rt_dom_cntl( > > struct list_head *iter; > > unsigned long flags; > > int rc = 0; > > +xen_domctl_sch

Re: [Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-08 Thread Jan Beulich
>>> On 07.05.15 at 19:05, wrote: > --- a/xen/common/sched_rt.c > +++ b/xen/common/sched_rt.c > @@ -1085,6 +1085,9 @@ rt_dom_cntl( > struct list_head *iter; > unsigned long flags; > int rc = 0; > +xen_domctl_sched_rtds_params_t *local_sched; > +int vcpu_index=0; > +int i;

[Xen-devel] [PATCH v1 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-07 Thread Chong Li
Add two hypercalls(XEN_DOMCTL_SCHEDOP_getvcpuinfo/putvcpuinfo) to get/set a domain's per-VCPU parameters. Hypercalls are handled in function rt_dom_cntl. Add an array pointer in struct xen_domctl_sched_rtds(an union in struct xen_domctl_scheduler_op), which is used for transferring data between