From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Chen, Jiqian" <Jiqian.Chen@amd.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
"Huang, Ray" <Ray.Huang@amd.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v2 1/1] vpci: Add resizable bar support
Date: Wed, 11 Dec 2024 09:43:01 +0100 [thread overview]
Message-ID: <Z1lQlVx_p_nvdLHG@macbook.local> (raw)
In-Reply-To: <328c3bb6-1adf-4c64-81d4-40704ea1f19e@suse.com>
On Wed, Dec 11, 2024 at 09:25:16AM +0100, Jan Beulich wrote:
> On 11.12.2024 08:57, Chen, Jiqian wrote:
> > On 2024/12/10 19:25, Roger Pau Monné wrote:
> >> So you suggest that the capability should be hidden in that case? We
> >> have logic to hide capabilities, just not used for the hardware
> >> domain. It would need some extra wiring to be capable of hiding
> >> failed capabilities.
> > Can you give me a guidance on how to hide a failed capability?
> > What codes are current logic to hide capabilities?
> > Then maybe I can add a patch to implement it.
>
> It's really the other way around right now for "normal" capabilities:
> We whitelist what we expose. See init_header()'s logic after checking
> the PCI_STATUS_CAP_LIST bit. Actually past that block there's
>
> /* Extended capabilities read as zero, write ignore */
> rc = vpci_add_register(pdev->vpci, vpci_read_val, NULL, 0x100, 4,
> (void *)0);
>
> I.e. no extended capabilities are exposed at all right now to DomU-s.
> For Dom0 I guess we shouldn't use whitelisting, but the (extended)
> capability list(s) would need similarly virtualizing to be able to
> hide some.
Given this capability is only to be exposed to the hw domain (at least
for now), I'm not sure it's fair to ask to add all this
infrastructure as part of adding the new capability. It would be great
to have it, but doesn't seem fair when there's already MSI and MSI-X
implemented without such support.
Thanks, Roger.
next prev parent reply other threads:[~2024-12-11 8:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 6:09 [PATCH v2 1/1] vpci: Add resizable bar support Jiqian Chen
2024-12-09 13:59 ` Jan Beulich
2024-12-10 7:07 ` Chen, Jiqian
2024-12-10 7:17 ` Jan Beulich
2024-12-10 7:57 ` Chen, Jiqian
2024-12-10 9:54 ` Jan Beulich
2024-12-10 11:25 ` Roger Pau Monné
2024-12-10 12:15 ` Jan Beulich
2024-12-10 12:54 ` Roger Pau Monné
2024-12-11 6:37 ` Chen, Jiqian
2024-12-11 8:16 ` Roger Pau Monné
2024-12-11 9:36 ` Chen, Jiqian
2024-12-11 9:45 ` Roger Pau Monné
2024-12-11 7:57 ` Chen, Jiqian
2024-12-11 8:25 ` Jan Beulich
2024-12-11 8:43 ` Roger Pau Monné [this message]
2024-12-11 8:53 ` Jan Beulich
2024-12-11 10:19 ` Chen, Jiqian
2024-12-11 10:25 ` Jan Beulich
2024-12-11 8:40 ` Roger Pau Monné
2024-12-11 9:44 ` Chen, Jiqian
2024-12-11 6:18 ` Chen, Jiqian
2024-12-10 11:00 ` Roger Pau Monné
2024-12-10 11:05 ` Jan Beulich
2024-12-11 6:20 ` Chen, Jiqian
2024-12-10 11:30 ` Roger Pau Monné
2024-12-11 6:42 ` 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=Z1lQlVx_p_nvdLHG@macbook.local \
--to=roger.pau@citrix.com \
--cc=Jiqian.Chen@amd.com \
--cc=Ray.Huang@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.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.