|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/5] libxl: enable per-VCPU extratime flag for RTDS
On Fri, 2017-09-01 at 11:58 -0400, Meng Xu wrote:
> Modify libxl_vcpu_sched_params_get/set and sched_rtds_vcpu_get/set
> functions to support per-VCPU extratime flag
>
> Signed-off-by: Meng Xu <mengxu@xxxxxxxxxxxxx>
>
This patch looks ok to me.
Only one thing: in libxl_types.idl is, when its inside
libxl_domain_sched_params, marked as deprecated. I think it should be
moved out of that.
One (very) minor thing too:
> diff --git a/tools/libxl/libxl_sched.c b/tools/libxl/libxl_sched.c
> index faa604e..b76a29a 100644
> --- a/tools/libxl/libxl_sched.c
> +++ b/tools/libxl/libxl_sched.c
> @@ -558,6 +558,10 @@ static int sched_rtds_vcpu_get_all(libxl__gc
> *gc, uint32_t domid,
> for (i = 0; i < num_vcpus; i++) {
> scinfo->vcpus[i].period = vcpus[i].u.rtds.period;
> scinfo->vcpus[i].budget = vcpus[i].u.rtds.budget;
> + if (vcpus[i].u.rtds.flags & XEN_DOMCTL_SCHEDRT_extra)
> + scinfo->vcpus[i].extratime = 1;
> + else
> + scinfo->vcpus[i].extratime = 0;
>
This can be:
scinfo->vcpus[i].extratime = vcpus[i].u.rtds.flags & XEN_DOMCTL_SCHEDRT_extra
? 1 : 0
or:
scinfo->vcpus[i].extratime = !!(vcpus[i].u.rtds.flags &
XEN_DOMCTL_SCHEDRT_extra);
Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)Attachment:
signature.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |