From: Dario Faggioli <raistlin.df@gmail.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: ian.campbell@citrix.com, xisisu@gmail.com,
stefano.stabellini@eu.citrix.com, george.dunlap@eu.citrix.com,
ian.jackson@eu.citrix.com, xen-devel@lists.xen.org,
xumengpanda@gmail.com, Meng Xu <mengxu@cis.upenn.edu>,
lichong659@gmail.com, dgolomb@seas.upenn.edu
Subject: Re: [PATCH RFC v2 1/4] xen: add real time scheduler rt
Date: Tue, 29 Jul 2014 11:42:38 +0200 [thread overview]
Message-ID: <1406626958.4038.33.camel@Solace> (raw)
In-Reply-To: <53D760D8020000780002717F@mail.emea.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 1395 bytes --]
On mar, 2014-07-29 at 07:52 +0100, Jan Beulich wrote:
> >>> On 29.07.14 at 03:52, <mengxu@cis.upenn.edu> wrote:
> > --- a/xen/include/public/domctl.h
> > +++ b/xen/include/public/domctl.h
> > @@ -339,6 +339,18 @@ struct xen_domctl_max_vcpus {
> > typedef struct xen_domctl_max_vcpus xen_domctl_max_vcpus_t;
> > DEFINE_XEN_GUEST_HANDLE(xen_domctl_max_vcpus_t);
> >
> > +/*
> > + * This structure is used to pass to rt scheduler from a
> > + * privileged domain to Xen
> > + */
> > +struct xen_domctl_sched_rt_params {
> > + /* get vcpus' info */
> > + int64_t period; /* s_time_t type */
> > + int64_t budget;
> > + int index;
>
> Are all these really meaningfully signed quantities?
>
The scheduler internal variable where the actual budget is kept updated
needs, IMO, to be signed (s_time_t is the best choice). However, as far
as the interface is concerned, I think Jan is right, being able to
specify a negative budget and period is not that useful! :-P
I think you can go for unsigned quantities here, while s_time_t is
certainly ok inside the scheduler.
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 #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-07-29 9:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-29 1:52 Introduce rt real-time scheduler for Xen Meng Xu
2014-07-29 1:52 ` [PATCH RFC v2 1/4] xen: add real time scheduler rt Meng Xu
2014-07-29 6:52 ` Jan Beulich
2014-07-29 9:42 ` Dario Faggioli [this message]
2014-07-30 15:55 ` [RFC " Meng Xu
2014-07-29 10:36 ` [PATCH RFC " Andrew Cooper
2014-08-02 15:31 ` Meng Xu
2014-08-04 10:23 ` Andrew Cooper
2014-08-07 11:26 ` Meng Xu
2014-08-07 11:48 ` Andrew Cooper
2014-07-29 1:53 ` [PATCH RFC v2 2/4] libxc: add rt scheduler Meng Xu
2014-07-29 1:53 ` [PATCH RFC v2 3/4] libxl: " Meng Xu
2014-07-29 1:53 ` [PATCH RFC v2 4/4] xl: introduce " Meng Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1406626958.4038.33.camel@Solace \
--to=raistlin.df@gmail.com \
--cc=JBeulich@suse.com \
--cc=dgolomb@seas.upenn.edu \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=lichong659@gmail.com \
--cc=mengxu@cis.upenn.edu \
--cc=raistlin@linux.it \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=xisisu@gmail.com \
--cc=xumengpanda@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).