From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jiqian Chen <Jiqian.Chen@amd.com>
Cc: Jan Beulich <jbeulich@suse.com>, Wei Liu <wl@xen.org>,
Anthony PERARD <anthony.perard@citrix.com>,
Juergen Gross <jgross@suse.com>,
Stefano Stabellini <sstabellini@kernel.org>,
xen-devel@lists.xenproject.org,
Stewart Hildebrand <Stewart.Hildebrand@amd.com>,
Alex Deucher <Alexander.Deucher@amd.com>,
Xenia Ragiadakou <xenia.ragiadakou@amd.com>,
Stefano Stabellini <stefano.stabellini@amd.com>,
Huang Rui <Ray.Huang@amd.com>,
Honglei Huang <Honglei1.Huang@amd.com>,
Julia Zhang <Julia.Zhang@amd.com>
Subject: Re: [RFC XEN PATCH v2 2/3] x86/pvh: Open PHYSDEVOP_map_pirq for PVH dom0
Date: Tue, 28 Nov 2023 15:17:23 +0100 [thread overview]
Message-ID: <ZWX2c7oQfeZxrpEF@macbook> (raw)
In-Reply-To: <20231124104136.3263722-3-Jiqian.Chen@amd.com>
On Fri, Nov 24, 2023 at 06:41:35PM +0800, Jiqian Chen wrote:
> If we run Xen with PVH dom0 and hvm domU, hvm will map a pirq for
> a passthrough device by using gsi, see xen_pt_realize->xc_physdev_map_pirq
> and pci_add_dm_done->xc_physdev_map_pirq. Then xc_physdev_map_pirq will
> call into Xen, but in hvm_physdev_op, PHYSDEVOP_map_pirq is not allowed
> because currd is PVH dom0 and PVH has no X86_EMU_USE_PIRQ flag, it will
> fail at has_pirq check.
>
> So, I think we may need to allow PHYSDEVOP_map_pirq when currd is dom0 (at
And PHYSDEVOP_unmap_pirq also?
> present dom0 is PVH).
IMO it would be better to implement a new set of DMOP hypercalls that
handle the setup of interrupts from physical devices that are assigned
to a guest. That should allow us to get rid of the awkward PHYSDEVOP
+ XEN_DOMCTL_{,un}bind_pt_irq hypercall interface, which currently
prevents QEMU from being hypervisor version agnostic (since the domctl
interface is not stable).
I understand this might be too much to ask for, but something to take
into account.
Thanks, Roger.
next prev parent reply other threads:[~2023-11-28 14:17 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 10:41 [RFC XEN PATCH v2 0/3] Support device passthrough when dom0 is PVH on Xen Jiqian Chen
2023-11-24 10:41 ` [RFC XEN PATCH v2 1/3] xen/vpci: Clear all vpci status of device Jiqian Chen
2023-11-28 14:08 ` Roger Pau Monné
2023-11-30 6:22 ` Chen, Jiqian
2023-11-30 11:52 ` Roger Pau Monné
2023-11-30 11:55 ` Chen, Jiqian
2023-11-30 12:25 ` Daniel P. Smith
2023-11-30 12:39 ` Daniel P. Smith
2023-11-30 14:52 ` Roger Pau Monné
2023-12-04 6:57 ` Chen, Jiqian
2023-12-04 11:10 ` Roger Pau Monné
2023-12-05 5:49 ` Chen, Jiqian
2023-12-07 1:11 ` Daniel P. Smith
2023-11-30 13:03 ` Chen, Jiqian
2023-11-24 10:41 ` [RFC XEN PATCH v2 2/3] x86/pvh: Open PHYSDEVOP_map_pirq for PVH dom0 Jiqian Chen
2023-11-28 14:17 ` Roger Pau Monné [this message]
2023-11-30 6:32 ` Chen, Jiqian
2023-11-30 15:13 ` Roger Pau Monné
2023-11-28 15:14 ` Jan Beulich
2023-11-30 6:44 ` Chen, Jiqian
2023-11-30 8:38 ` Chen, Jiqian
2023-11-30 9:00 ` Jan Beulich
2023-11-30 9:43 ` Chen, Jiqian
2023-11-24 10:41 ` [RFC XEN PATCH v2 3/3] tools: Add new function to get gsi from irq Jiqian Chen
2023-11-28 14:25 ` Roger Pau Monné
2023-11-28 14:42 ` Juergen Gross
2023-11-28 16:11 ` Roger Pau Monné
2023-11-28 16:22 ` Juergen Gross
2023-11-30 6:57 ` Chen, Jiqian
2023-11-30 3:38 ` Stefano Stabellini
2023-11-30 4:02 ` Stefano Stabellini
2023-11-30 10:06 ` Roger Pau Monné
2023-12-01 3:09 ` Stefano Stabellini
2023-12-01 9:03 ` Roger Pau Monné
2023-12-04 5:38 ` Chen, Jiqian
2023-12-04 11:12 ` Roger Pau Monné
2023-11-30 6:53 ` 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=ZWX2c7oQfeZxrpEF@macbook \
--to=roger.pau@citrix.com \
--cc=Alexander.Deucher@amd.com \
--cc=Honglei1.Huang@amd.com \
--cc=Jiqian.Chen@amd.com \
--cc=Julia.Zhang@amd.com \
--cc=Ray.Huang@amd.com \
--cc=Stewart.Hildebrand@amd.com \
--cc=anthony.perard@citrix.com \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=sstabellini@kernel.org \
--cc=stefano.stabellini@amd.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xenia.ragiadakou@amd.com \
/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.