From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH RFC v1 1/2] xen/hw/passthrough: Use errno instead of ret for xc_physdev_map_* calls
Date: Mon, 16 Mar 2015 10:27:08 -0400 [thread overview]
Message-ID: <20150316142708.GI8518@l.oracle.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1503161013340.7982@kaball.uk.xensource.com>
On Mon, Mar 16, 2015 at 10:13:50AM +0000, Stefano Stabellini wrote:
> On Fri, 13 Mar 2015, Konrad Rzeszutek Wilk wrote:
> > As the libxc library follows (mostly) the return negative
> > for failure and stashes the error value in errno.
> >
> > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>
> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>
> I'll add it to my queue
Thank you.
>
>
> > hw/xen/xen_pt.c | 4 ++--
> > hw/xen/xen_pt_msi.c | 4 ++--
> > 2 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c
> > index c1bf357..d2c187d 100644
> > --- a/hw/xen/xen_pt.c
> > +++ b/hw/xen/xen_pt.c
> > @@ -691,8 +691,8 @@ static int xen_pt_initfn(PCIDevice *d)
> > rc = xc_physdev_map_pirq(xen_xc, xen_domid, machine_irq, &pirq);
> >
> > if (rc < 0) {
> > - XEN_PT_ERR(d, "Mapping machine irq %u to pirq %i failed, (rc: %d)\n",
> > - machine_irq, pirq, rc);
> > + XEN_PT_ERR(d, "Mapping machine irq %u to pirq %i failed, (err: %d)\n",
> > + machine_irq, pirq, errno);
> >
> > /* Disable PCI intx assertion (turn on bit10 of devctl) */
> > xen_host_pci_set_word(&s->real_device,
> > diff --git a/hw/xen/xen_pt_msi.c b/hw/xen/xen_pt_msi.c
> > index 9ed9321..b01921a 100644
> > --- a/hw/xen/xen_pt_msi.c
> > +++ b/hw/xen/xen_pt_msi.c
> > @@ -132,8 +132,8 @@ static int msi_msix_setup(XenPCIPassthroughState *s,
> > msix_entry, table_base);
> > if (rc) {
> > XEN_PT_ERR(&s->dev,
> > - "Mapping of MSI%s (rc: %i, vec: %#x, entry %#x)\n",
> > - is_msix ? "-X" : "", rc, gvec, msix_entry);
> > + "Mapping of MSI%s (err: %i, vec: %#x, entry %#x)\n",
> > + is_msix ? "-X" : "", errno, gvec, msix_entry);
> > return rc;
> > }
> > }
> > --
> > 2.1.0
> >
next prev parent reply other threads:[~2015-03-16 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 19:36 [Qemu-devel] [RFC PATCH v1] Include errno values in printfs for some xc_ calls Konrad Rzeszutek Wilk
2015-03-13 19:36 ` [Qemu-devel] [PATCH RFC v1 1/2] xen/hw/passthrough: Use errno instead of ret for xc_physdev_map_* calls Konrad Rzeszutek Wilk
2015-03-16 10:13 ` Stefano Stabellini
2015-03-16 14:27 ` Konrad Rzeszutek Wilk [this message]
2015-03-13 19:36 ` [Qemu-devel] [PATCH RFC v1 2/2] xen-hvm: When using xc_domain_add_to_physmap also include errno when reporting Konrad Rzeszutek Wilk
2015-03-16 10:14 ` Stefano Stabellini
2015-03-13 19:46 ` [Qemu-devel] [RFC PATCH v1] Include errno values in printfs for some xc_ calls Patchew Tool
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=20150316142708.GI8518@l.oracle.com \
--to=konrad.wilk@oracle.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.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 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).