From: Anthony PERARD <anthony.perard@vates.tech>
To: "Chen, Jiqian" <Jiqian.Chen@amd.com>
Cc: "Jan Beulich" <jbeulich@suse.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"George Dunlap" <george.dunlap@citrix.com>,
"Julien Grall" <julien@xen.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Juergen Gross" <jgross@suse.com>,
"Hildebrand, Stewart" <Stewart.Hildebrand@amd.com>,
"Huang, Ray" <Ray.Huang@amd.com>,
xen-devel@lists.xenproject.org,
"Daniel P . Smith" <dpsmith@apertussolutions.com>
Subject: Re: [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi
Date: Thu, 13 Jun 2024 12:51:05 +0000 [thread overview]
Message-ID: <ZmrrNvv2sVaOIS5h@l14> (raw)
In-Reply-To: <BL1PR12MB5849652CE3039C8D17CD7FA6E7C02@BL1PR12MB5849.namprd12.prod.outlook.com>
On Wed, Jun 12, 2024 at 10:55:14AM +0000, Chen, Jiqian wrote:
> On 2024/6/12 18:34, Jan Beulich wrote:
> > On 12.06.2024 12:12, Chen, Jiqian wrote:
> >> On 2024/6/11 22:39, Jan Beulich wrote:
> >>> On 07.06.2024 10:11, Jiqian Chen wrote:
> >>>> + r = xc_domain_gsi_permission(ctx->xch, domid, gsi, map);
> >>>
> >>> Looking at the hypervisor side, this will fail for PV Dom0. In which case imo
> >>> you better would avoid making the call in the first place.
> >> Yes, for PV dom0, the errno is EOPNOTSUPP, then it will do below xc_domain_irq_permission.
> >
> > Hence why call xc_domain_gsi_permission() at all on a PV Dom0?
> Is there a function to distinguish that current dom0 is PV or PVH dom0 in tools/libs?
That might have never been needed before, so probably not. There's
libxl__domain_type() but if that works with dom0 it might return "HVM"
for PVH dom0. So if xc_domain_getinfo_single() works and give the right
info about dom0, libxl__domain_type() could be extended to deal with
dom0 I guess. I don't know if there's a good way to find out which
flavor of dom0 is running.
Cheers,
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
next prev parent reply other threads:[~2024-06-13 12:51 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-07 8:11 [XEN PATCH v9 0/5] Support device passthrough when dom0 is PVH on Xen Jiqian Chen
2024-06-07 8:11 ` [XEN PATCH v9 1/5] xen/vpci: Clear all vpci status of device Jiqian Chen
2024-06-07 8:11 ` [XEN PATCH v9 2/5] x86/pvh: Allow (un)map_pirq when dom0 is PVH Jiqian Chen
2024-06-10 15:58 ` Jan Beulich
2024-06-12 2:43 ` Chen, Jiqian
2024-06-12 8:53 ` Jan Beulich
2024-06-12 9:07 ` Chen, Jiqian
2024-06-12 9:21 ` Jan Beulich
2024-06-12 10:15 ` Chen, Jiqian
2024-06-07 8:11 ` [XEN PATCH v9 3/5] x86/pvh: Add PHYSDEVOP_setup_gsi for PVH dom0 Jiqian Chen
2024-06-10 16:04 ` Jan Beulich
2024-06-12 10:15 ` Chen, Jiqian
2024-07-22 21:27 ` Stefano Stabellini
2024-06-07 8:11 ` [RFC XEN PATCH v9 4/5] tools: Add new function to get gsi from dev Jiqian Chen
2024-06-07 8:11 ` [RFC XEN PATCH v9 5/5] domctl: Add XEN_DOMCTL_gsi_permission to grant gsi Jiqian Chen
2024-06-11 14:39 ` Jan Beulich
2024-06-12 10:12 ` Chen, Jiqian
2024-06-12 10:34 ` Jan Beulich
2024-06-12 10:55 ` Chen, Jiqian
2024-06-12 11:43 ` Jan Beulich
2024-06-13 12:51 ` Anthony PERARD [this message]
2024-06-14 3:11 ` Chen, Jiqian
2024-06-14 6:41 ` Jan Beulich
2024-06-14 6:53 ` Chen, Jiqian
2024-06-14 4:01 ` Chen, Jiqian
2024-06-10 16:07 ` [XEN PATCH v9 0/5] Support device passthrough when dom0 is PVH on Xen Jan Beulich
2024-06-12 2:33 ` Chen, Jiqian
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=ZmrrNvv2sVaOIS5h@l14 \
--to=anthony.perard@vates.tech \
--cc=Jiqian.Chen@amd.com \
--cc=Ray.Huang@amd.com \
--cc=Stewart.Hildebrand@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=dpsmith@apertussolutions.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.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.