All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Roger Pau Monne <roger.pau@citrix.com>
Cc: xen-devel@lists.xenproject.org, Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH] tools/libxl: include scheduler parameters in the output of xl list -l
Date: Wed, 4 Jan 2017 11:35:54 +0000	[thread overview]
Message-ID: <20170104113554.GL13806@citrix.com> (raw)
In-Reply-To: <20170104112041.xzphqyxakbgrakvz@dhcp-3-221.uk.xensource.com>

On Wed, Jan 04, 2017 at 11:20:41AM +0000, Roger Pau Monne wrote:
> On Wed, Jan 04, 2017 at 11:08:51AM +0000, Wei Liu wrote:
> > On Wed, Jan 04, 2017 at 09:55:59AM +0000, Roger Pau Monne wrote:
> > > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > > Reported-by: Fatih Acar <fatih@gandi.net>
> > > ---
> > > Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> > > Cc: Wei Liu <wei.liu2@citrix.com>
> > > ---
> > > This should be backported to all supported stable branches (4.6, 4.7, 4.8).
> > > ---
> > >  tools/libxl/libxl.c | 10 ++++++++++
> > >  1 file changed, 10 insertions(+)
> > > 
> > > diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c
> > > index 6fd4fe1..7aa6d41 100644
> > > --- a/tools/libxl/libxl.c
> > > +++ b/tools/libxl/libxl.c
> > > @@ -6925,6 +6925,16 @@ int libxl_retrieve_domain_configuration(libxl_ctx *ctx, uint32_t domid,
> > >          }
> > >      }
> > >  
> > > +    /* Scheduler params */
> > > +    {
> > 
> > Please add the following:
> > 
> >  libxl_sched_params_dispose(&d_config->b_info.sched_params);
> >  libxl_sched_params_init(&d_config->b_info.sched_params);
> 
> libxl_domain_sched_params_get already calls libxl_sched_params_init which
> performs a memset plus sets the default values, so I don't see the need to call
> _dispose and _init from libxl_retrieve_domain_configuration.
> 

At the very least please call _dispose. The _init call can be dropped.

> > Also I would like to move this block before device handling.
> 
> I can certainly do that.
> 
> Roger.
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-01-04 11:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-04  9:55 [PATCH] tools/libxl: include scheduler parameters in the output of xl list -l Roger Pau Monne
2017-01-04 11:08 ` Wei Liu
2017-01-04 11:20   ` Roger Pau Monne
2017-01-04 11:35     ` Wei Liu [this message]
2017-01-04 11:45       ` Roger Pau Monne
2017-01-05 10:44         ` Wei Liu

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=20170104113554.GL13806@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.