From: Ian Jackson <ian.jackson@citrix.com>
To: Grzegorz Uriasz <gorbak25@gmail.com>,
Jan Beulich <jbeulich@suse.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Kevin Tian <kevin.tian@intel.com>, Paul Durrant <paul@xen.org>
Cc: Wei Liu <wl@xen.org>, "jakub@bartmin.ski" <jakub@bartmin.ski>,
"marmarek@invisiblethingslab.com"
<marmarek@invisiblethingslab.com>,
"j.nowak26@student.uw.edu.pl" <j.nowak26@student.uw.edu.pl>,
Anthony Perard <anthony.perard@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"contact@puzio.waw.pl" <contact@puzio.waw.pl>
Subject: Re: [PATCH] libxl: tooling expects wrong errno
Date: Mon, 15 Jun 2020 15:59:50 +0100 [thread overview]
Message-ID: <24295.36070.945693.791220@mariner.uk.xensource.com> (raw)
In-Reply-To: <ebdcefb5ab4b9053dee7c090b4e6562e597b3474.1592151144.git.gorbak25@gmail.com>
Grzegorz Uriasz writes ("[PATCH] libxl: tooling expects wrong errno"):
> When iommu is not enabled for a given domain then pci passthrough
> hypercalls such as xc_test_assign_device return EOPNOTSUPP.
> The code responsible for this is in "iommu_do_domctl" inside
> xen/drivers/passthrough/iommu.c
> This patch fixes the error message reported by libxl when assigning
> pci devices to domains without iommu.
>
> Signed-off-by: Grzegorz Uriasz <gorbak25@gmail.com>
> Tested-by: Grzegorz Uriasz <gorbak25@gmail.com>
> ---
> tools/libxl/libxl_pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
> index 957ff5c8e9..bc5843b137 100644
> --- a/tools/libxl/libxl_pci.c
> +++ b/tools/libxl/libxl_pci.c
> @@ -1561,7 +1561,7 @@ void libxl__device_pci_add(libxl__egc *egc, uint32_t domid,
> LOGD(ERROR, domid,
> "PCI device %04x:%02x:%02x.%u %s?",
> pcidev->domain, pcidev->bus, pcidev->dev, pcidev->func,
> - errno == ENOSYS ? "cannot be assigned - no IOMMU"
> + errno == EOPNOTSUPP ? "cannot be assigned - no IOMMU"
> : "already assigned to a different guest");
> goto out;
> }
Thanks. I have addressed some Xen IOMMU maintainers. Can you confirm
whether this is right ?
Regards,
Ian.
next prev parent reply other threads:[~2020-06-15 15:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-14 16:17 [PATCH] libxl: tooling expects wrong errno Grzegorz Uriasz
2020-06-15 14:59 ` Ian Jackson [this message]
2020-06-15 15:56 ` Roger Pau Monné
2020-06-15 16:04 ` Paul Durrant
2020-06-15 16:37 ` Ian Jackson
2020-06-15 17:11 ` Paul Durrant
2020-06-15 17:39 ` Ian Jackson
2020-06-26 11:25 ` Wei Liu
2020-06-26 11:28 ` Paul Durrant
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=24295.36070.945693.791220@mariner.uk.xensource.com \
--to=ian.jackson@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=contact@puzio.waw.pl \
--cc=gorbak25@gmail.com \
--cc=j.nowak26@student.uw.edu.pl \
--cc=jakub@bartmin.ski \
--cc=jbeulich@suse.com \
--cc=kevin.tian@intel.com \
--cc=marmarek@invisiblethingslab.com \
--cc=paul@xen.org \
--cc=wl@xen.org \
--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.