From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v3 3/4] libxl: add rtds scheduler Date: Mon, 15 Sep 2014 23:07:01 +0100 Message-ID: <1410818821.6908.4.camel@hastur.hellion.org.uk> References: <1410730649-2417-1-git-send-email-mengxu@cis.upenn.edu> <1410730649-2417-4-git-send-email-mengxu@cis.upenn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410730649-2417-4-git-send-email-mengxu@cis.upenn.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Meng Xu Cc: xisisu@gmail.com, stefano.stabellini@eu.citrix.com, george.dunlap@eu.citrix.com, lu@cse.wustl.edu, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, ptxlinh@gmail.com, xumengpanda@gmail.com, JBeulich@suse.com, chaowang@wustl.edu, lichong659@gmail.com, dgolomb@seas.upenn.edu List-Id: xen-devel@lists.xenproject.org On Sun, 2014-09-14 at 17:37 -0400, Meng Xu wrote: > Add libxl functions to set/get domain's parameters for rtds scheduler > Note: VCPU's information (period, budget) is in microsecond (us). > > Signed-off-by: Meng Xu > Signed-off-by: Sisu Xi Mostly looks good. The main thing which is missing is a #define LIBXL_HAVE_XXX in libxl to advertise this new feature (there are a bunch of existing examples which you can copy). > + if (scinfo->period != LIBXL_DOMAIN_SCHED_PARAM_PERIOD_DEFAULT) { > + if (scinfo->period < 1) { > + LOG(ERROR, "VCPU period is not set or out of range, " > + "valid values are larger than 1"); There's no upper limit? Likewise for the budget further down? Ian.