All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Chong Li <lichong659@gmail.com>
Cc: Chong Li <chong.li@wustl.edu>, Wei Liu <wei.liu2@citrix.com>,
	Sisu Xi <xisisu@gmail.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	"dario.faggioli" <dario.faggioli@citrix.com>,
	xen-devel <xen-devel@lists.xen.org>,
	Meng Xu <mengxu@cis.upenn.edu>,
	Dagaen Golomb <dgolomb@seas.upenn.edu>
Subject: Re: [PATCH v3 for Xen 4.6 2/4] libxc: enable per-VCPU parameter settings for RTDS scheduler
Date: Tue, 30 Jun 2015 17:04:50 +0100	[thread overview]
Message-ID: <1435680290.21469.222.camel@citrix.com> (raw)
In-Reply-To: <CAGHO-ipYa394KWaWjCqE9AnH=vZ+6tEBf9Q6dVo5N2B6ufLhuw@mail.gmail.com>

On Tue, 2015-06-30 at 10:57 -0500, Chong Li wrote:
> On Tue, Jun 30, 2015 at 10:32 AM, Ian Campbell <ian.campbell@citrix.com> wrote:
> > On Tue, 2015-06-30 at 10:18 -0500, Chong Li wrote:
> >> On Tue, Jun 30, 2015 at 7:22 AM, Ian Campbell <ian.campbell@citrix.com> wrote:
> >> > On Sun, 2015-06-28 at 21:44 -0500, Chong Li wrote:
> >> >
> >> >> diff --git a/tools/libxc/xc_csched.c b/tools/libxc/xc_csched.c
> >> >> index 390c645..5a2bdf4 100644
> >> >> --- a/tools/libxc/xc_csched.c
> >> >> +++ b/tools/libxc/xc_csched.c
> >> >> @@ -36,7 +36,7 @@ xc_sched_credit_domain_set(
> >> >>      domctl.domain = (domid_t) domid;
> >> >>      domctl.u.scheduler_op.sched_id = XEN_SCHEDULER_CREDIT;
> >> >>      domctl.u.scheduler_op.cmd = XEN_DOMCTL_SCHEDOP_putinfo;
> >> >> -    domctl.u.scheduler_op.u.credit = *sdom;
> >> >> +    domctl.u.scheduler_op.u.d.credit = *sdom;
> >> >
> >> > I don't see any change to any types in this series, which makes me
> >> > suspect it is in another patch and that bisectability is therefore not
> >> > maintained through the series. Each patch in the series needs to build
> >> > when they are applied one by one.
> >> >
> >> > This probably means that at to at least some degree hypercall interface
> >> > changes need to be done in the same time as the libxc adjustments. You
> >> > can still keep the _new_ functionality in a separate patch of course (if
> >> > that makes sense in this case).
> >>
> >> Because both per-domain and per-vcpu parameters are now unioned in
> >> struct xen_domctl_scheduler_op, we need to specify per-domain or
> >> per-vcpu when using domctl.u.scheduler_op.u (.d means per-domain, .v
> >> means per-vcpu). This change also happens to the XEN_DOMCTL_SCHEDOP_*
> >> handlers (of all schedulers), where the domctl.u.scheduler_op.u.* is
> >> passed to.
> >
> > I understand the interface change, but the problem is that the interface
> > change and the change ot the users of that interface seem to be in
> > different patches, which breaks bisectability.
> >
> > Does this series compile and work at every step?
> >
> > i.e. the following combinations of patches from this 4 patch series all
> > need to build and work successfully:
> >
> > Patch #1
> > Patch #1+#2
> > Patch #1+#2+#3
> > Patch #1+#2+#3+#4
> >
> > Is that the case?
> 
> I see your point. Do you mean the change of struct
> xen_domctl_scheduler_op, the change of XEN_DOMCTL_SCHEDOP_* handlers
> (in xen) and the change of libxc (just shown above) should be in the
> same patch? Should the title of that patch be something like
> "xen+libxc: enable per-vcpu parameter settings for RTDS scheduler" ?

Ah I said, you should be able to do the nop interface change in one
patch and then add the bindings for the new scheduler in a separate one.

Ian.
> 
> Chong
> >
> > Ian.
> >
> 
> 
> 

  reply	other threads:[~2015-06-30 16:04 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-29  2:44 [PATCH v3 for Xen 4.6 0/4] Enable per-VCPU parameter settings for RTDS scheduler Chong Li
2015-06-29  2:44 ` [PATCH v3 for Xen 4.6 1/4] xen: enable " Chong Li
2015-07-07  8:59   ` Jan Beulich
2015-07-07 14:39     ` Dario Faggioli
2015-07-08  6:06       ` Meng Xu
2015-07-08  8:33         ` Dario Faggioli
2015-07-09  1:16           ` Meng Xu
2015-07-10  9:51             ` Dario Faggioli
2015-07-07 14:55     ` Dario Faggioli
2015-07-07 16:09       ` Jan Beulich
2015-07-07 15:33     ` Chong Li
2015-07-07 15:41       ` Jan Beulich
2015-07-07 15:46       ` Dario Faggioli
2015-07-07 14:51   ` Dario Faggioli
2015-06-29  2:44 ` [PATCH v3 for Xen 4.6 2/4] libxc: " Chong Li
2015-06-30 12:22   ` Ian Campbell
2015-06-30 15:18     ` Chong Li
2015-06-30 15:32       ` Ian Campbell
2015-06-30 15:57         ` Chong Li
2015-06-30 16:04           ` Ian Campbell [this message]
2015-06-29  2:44 ` [PATCH v3 for Xen 4.6 3/4] libxl: " Chong Li
2015-06-30 12:26   ` Ian Campbell
2015-06-30 15:42     ` Chong Li
2015-06-30 15:57       ` Ian Campbell
2015-06-30 16:10         ` Chong Li
2015-06-30 16:19           ` Ian Campbell
2015-06-30 16:53             ` Chong Li
2015-07-01  0:54             ` Meng Xu
2015-07-01  8:48               ` Ian Campbell
2015-07-01 12:50                 ` Dario Faggioli
2015-07-01 16:59                   ` Chong Li
2015-07-07 16:23   ` Dario Faggioli
2015-07-08 14:35     ` Chong Li
2015-07-08 14:45       ` Dario Faggioli
2015-06-29  2:44 ` [PATCH v3 for Xen 4.6 4/4] xl: " Chong Li
2015-07-07 15:34   ` Dario Faggioli
2015-07-07 16:01     ` Chong Li
2015-07-07 15:16 ` [PATCH v3 for Xen 4.6 0/4] Enable " Dario Faggioli
2015-07-07 16:11   ` Chong Li

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=1435680290.21469.222.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=chong.li@wustl.edu \
    --cc=dario.faggioli@citrix.com \
    --cc=dgolomb@seas.upenn.edu \
    --cc=george.dunlap@eu.citrix.com \
    --cc=lichong659@gmail.com \
    --cc=mengxu@cis.upenn.edu \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xisisu@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.