All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Stewart Hildebrand <stewart.hildebrand@amd.com>
Subject: Re: [PATCH v2 4/4] vPCI/DomU: really no ext-caps without extended config space
Date: Thu, 29 Jan 2026 11:51:06 +0100	[thread overview]
Message-ID: <aXs7mpUU0qA8tFBA@Mac.lan> (raw)
In-Reply-To: <e1cd0c63-c19b-452a-b967-cc51a0aed0bf@suse.com>

On Thu, Jan 29, 2026 at 11:08:22AM +0100, Jan Beulich wrote:
> On 29.01.2026 10:19, Roger Pau Monné wrote:
> > On Mon, Jan 19, 2026 at 03:48:01PM +0100, Jan Beulich wrote:
> >> --- a/xen/drivers/vpci/header.c
> >> +++ b/xen/drivers/vpci/header.c
> >> @@ -830,9 +830,14 @@ static int vpci_init_ext_capability_list
> >>      unsigned int pos = PCI_CFG_SPACE_SIZE;
> >>  
> >>      if ( !is_hardware_domain(pdev->domain) )
> >> +    {
> >> +        if ( !pdev->ext_cfg )
> >> +            return 0;
> > 
> > Don't you want to possibly put this as a top-level check, so if
> > there's no extended config space we avoid doing the PCI_CFG_SPACE_SIZE
> > read for dom0 also?
> 
> Hmm, yes, didn't think about that. That'll mean dropping the
> "if ( pos != PCI_CFG_SPACE_SIZE )" from the body of the
> "if ( header == 0xffffffffU )" then, i.e. the printk() there becoming
> unconditional. It may also mean dropping "DomU" from the subject.

I've also wondered whether we want to short-circuit vpci_{read,write}
accesses if the device doesn't have extended cfg, for domUs to be on
the safe side.

Thanks, Roger.


  reply	other threads:[~2026-01-29 10:51 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19 14:45 [PATCH v2 0/4] (v)PCI: extended capability handling Jan Beulich
2026-01-19 14:46 ` [PATCH v2 1/4] PCI: handle PCI->PCIe bridges as well in alloc_pdev() Jan Beulich
2026-01-19 22:02   ` Stewart Hildebrand
2026-01-28 14:27   ` Roger Pau Monné
2026-01-19 14:46 ` [PATCH v2 2/4] PCI: determine whether a device has extended config space Jan Beulich
2026-01-23 22:24   ` Stewart Hildebrand
2026-01-26  8:58     ` Jan Beulich
2026-01-27  4:13       ` Stewart Hildebrand
2026-01-27  9:01         ` Jan Beulich
2026-01-28 17:49   ` Roger Pau Monné
2026-01-29  8:15     ` Jan Beulich
2026-01-29 10:33       ` Roger Pau Monné
2026-01-29 11:43         ` Jan Beulich
2026-01-19 14:47 ` [PATCH v2 3/4] PCI: don't look for ext-caps when there's no extended cfg space Jan Beulich
2026-01-26 15:51   ` Stewart Hildebrand
2026-01-29  8:53   ` Roger Pau Monné
2026-01-19 14:48 ` [PATCH v2 4/4] vPCI/DomU: really no ext-caps without extended config space Jan Beulich
2026-01-26 15:52   ` Stewart Hildebrand
2026-01-29  9:19   ` Roger Pau Monné
2026-01-29 10:08     ` Jan Beulich
2026-01-29 10:51       ` Roger Pau Monné [this message]
2026-01-29 11:36         ` Jan Beulich

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=aXs7mpUU0qA8tFBA@Mac.lan \
    --to=roger.pau@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=stewart.hildebrand@amd.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 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.