From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Chao Peng <chao.p.peng@linux.intel.com>,
Dongxiao Xu <dongxiao.xu@intel.com>,
Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH for-4.5] xl: correct test condition on libxl_domain_info
Date: Wed, 12 Nov 2014 10:22:07 -0500 [thread overview]
Message-ID: <20141112152207.GF6017@laptop.dumpdata.com> (raw)
In-Reply-To: <1415790652.29592.3.camel@citrix.com>
On Wed, Nov 12, 2014 at 11:10:52AM +0000, Ian Campbell wrote:
> CCing the folks who signed-of-by is on the original patch
>
> On Wed, 2014-11-12 at 11:05 +0000, Wei Liu wrote:
> > The `if' statement considered return value 0 from libxl_domain_info an
> > error, while 0 actually means success.
> >
> > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> > Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> > ---
> > This is a bug fix for PSR feature. This feature was added recently and it's
> > not an regression. However, it would be good to have it working correctly
> > since the beginning, and the fix is straightforward, which should be of
> > very low risk.
>
> Ack.
I concur and I think it should go in Xen 4.5, but I would like their
input first.
>
> > ---
> > tools/libxl/xl_cmdimpl.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> > index 3c9f146..9afef3f 100644
> > --- a/tools/libxl/xl_cmdimpl.c
> > +++ b/tools/libxl/xl_cmdimpl.c
> > @@ -7908,7 +7908,7 @@ static int psr_cmt_show_cache_occupancy(uint32_t domid)
> > /* Each domain */
> > if (domid != INVALID_DOMID) {
> > libxl_dominfo dominfo;
> > - if (!libxl_domain_info(ctx, &dominfo, domid)) {
> > + if (libxl_domain_info(ctx, &dominfo, domid)) {
> > fprintf(stderr, "Failed to get domain info for %d\n", domid);
> > return -1;
> > }
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-11-12 15:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 11:05 [PATCH for-4.5] xl: correct test condition on libxl_domain_info Wei Liu
2014-11-12 11:10 ` Ian Campbell
2014-11-12 15:22 ` Konrad Rzeszutek Wilk [this message]
2014-11-12 17:31 ` Wei Liu
2014-11-13 1:01 ` Chao Peng
2014-11-13 1:08 ` Konrad Rzeszutek Wilk
2014-11-14 10:35 ` Ian Campbell
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=20141112152207.GF6017@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=chao.p.peng@linux.intel.com \
--cc=dongxiao.xu@intel.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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.