xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ed Swierk <eswierk@skyportsystems.com>, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/mcfg: Call PHYSDEVOP_pci_mmcfg_reserved before PCI enumeration
Date: Tue, 22 Sep 2015 10:37:36 -0400	[thread overview]
Message-ID: <20150922143735.GC4454@l.oracle.com> (raw)
In-Reply-To: <56017DBD02000078000A4706@prv-mh.provo.novell.com>

On Tue, Sep 22, 2015 at 08:11:41AM -0600, Jan Beulich wrote:
> >>> On 22.09.15 at 16:03, <konrad.wilk@oracle.com> wrote:
> > On Tue, Sep 22, 2015 at 07:52:19AM -0600, Jan Beulich wrote:
> >> >>> On 22.09.15 at 15:39, <konrad.wilk@oracle.com> wrote:
> >> > On Tue, Sep 22, 2015 at 06:26:11AM -0700, Ed Swierk wrote:
> >> >> Any other ideas?
> >> > 
> >> > I like it - as it will update it right away. However we would need some
> >> > extra smarts in Xen to reconfigure its view of the PCI device now that the
> >> > extended configuration space has become available.
> >> 
> >> What parts are you thinking of that would need updating (and
> >> aren't getting updated already)?
> > 
> > The VF data. As before this call Xen might have not been able to
> > get to the extended configuration.
> 
> I still don't understand: Afaics pci_add_device() updates everything
> that may need updating already. And things appear to be working
> fine with our kernel (where the MMCFG notification comes right out
> of the x86 code earlier referred to), despite this meaning updates
> to the data collected during early boot. I guess you'll need to be
> more specific on what you see missing...

This is all ancient recollection of what I had seen a year or so ago
so take it a with a cup of salt.

I have one of those Intel machines where the MMCFG is not marked
in the E820 but is in the ACPI and I remember getting frequent
WARN_ON from Xen in the msi.c code when doing passthrough on the VF.
I don't have the logs but my vague recollection was that Xen could
not validate the VF's MSI-X because at the time it gathered the
VF PCI device information the extended configurations were not
available. This was prior to the XSA120 discovery so ancient
code.

With Ed's solution (along with your optimizations you suggested)
this should work. I can certainly try it out on my rig.


> 
> Jan
> 

  reply	other threads:[~2015-09-22 14:37 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 23:29 [PATCH] xen/mcfg: Call PHYSDEVOP_pci_mmcfg_reserved before PCI enumeration Ed Swierk
2015-09-21 15:58 ` Ed Swierk
2015-09-21 18:05   ` Konrad Rzeszutek Wilk
2015-09-22  5:23     ` Jan Beulich
2015-09-22 13:36       ` Konrad Rzeszutek Wilk
2015-09-22 13:57         ` Jan Beulich
2015-09-22 14:09           ` Konrad Rzeszutek Wilk
2015-09-22 14:12             ` Jan Beulich
2015-09-22 14:33               ` Konrad Rzeszutek Wilk
2015-09-22 15:07                 ` Jan Beulich
2015-09-22  5:21   ` Jan Beulich
2015-09-22 12:35     ` Ed Swierk
2015-09-22 12:40       ` Jan Beulich
2015-09-22 13:26       ` Ed Swierk
2015-09-22 13:36         ` Jan Beulich
2015-09-22 13:39         ` Konrad Rzeszutek Wilk
2015-09-22 13:52           ` Jan Beulich
2015-09-22 14:03             ` Konrad Rzeszutek Wilk
2015-09-22 14:11               ` Jan Beulich
2015-09-22 14:37                 ` Konrad Rzeszutek Wilk [this message]
2015-09-22 15:09                   ` Jan Beulich
2015-09-22 20:17                     ` Ed Swierk
2015-09-23  0:53                       ` Konrad Rzeszutek Wilk

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=20150922143735.GC4454@l.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=eswierk@skyportsystems.com \
    --cc=xen-devel@lists.xen.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).