From: "Jan Beulich" Subject: Re: [PATCH v2 for Xen 4.6 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler Date: Wed, 27 May 2015 12:42:15 +0100 Message-ID: <5565C9B7020000780007E280@mail.emea.novell.com> References: <1432598752-20826-1-git-send-email-chong.li@wustl.edu> <55645421020000780007DCB8@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chong Li Cc: Chong Li , Sisu Xi , George Dunlap , "dario.faggioli" , xen-devel , Meng Xu , Dagaen Golomb List-Id: xen-devel@lists.xenproject.org >>> On 27.05.15 at 07:33, wrote: > On Tue, May 26, 2015 at 12:18 PM, Chong Li wrote: >> On Tue, May 26, 2015 at 4:08 AM, Jan Beulich wrote: >>>>>> On 26.05.15 at 02:05, wrote: >>>> +/* Adjust scheduling parameter for the vcpus of a given domain. */ >>>> +long sched_adjust_vcpu( >>>> + struct domain *d, >>>> + struct xen_domctl_scheduler_vcpu_op *op) >>>> +{ >>>> + long ret; >>> >>> I see no reason for this and the function return type to be "long". >> >> The reason is stated in the begining. > > Sorry for missing some details in the last reply. > > sched_adjust_vcpu is added here because I need a seperate function to > handle XEN_DOMCTL_scheduler_vcpu_op, which is a new hypercall > dedicated for per-vcpu get/set. This function is actually based on > sched_adjust (which is dedicated for per-dom get/set in rtds), so the > return type is also the same. You explain why you need the function, but I asked about why the function return type and the quoted variable's types are "long". Jan