From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Kelly <Kelly.Zytaruk@amd.com>,
Julien Grall <julien.grall@arm.com>,
Paul Durrant <paul.durrant@citrix.com>,
xen-devel@lists.xenproject.org,
Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [DRAFT RFC] PVHv2 interaction with physical devices
Date: Wed, 16 Nov 2016 16:49:20 +0000 [thread overview]
Message-ID: <20161116164920.mj4rembs4eehitfr@roger.uk.xensource.com> (raw)
In-Reply-To: <5825A5D1020000780011DE85@prv-mh.provo.novell.com>
On Fri, Nov 11, 2016 at 03:04:49AM -0700, Jan Beulich wrote:
> >>> On 10.11.16 at 18:21, <konrad.wilk@oracle.com> wrote:
> > On Thu, Nov 10, 2016 at 04:20:34PM +0100, Roger Pau Monné wrote:
> >> > 0a:11.4 Ethernet controller: Intel Corporation 82576 Virtual Function
> >> > (rev 01)
> >> > Subsystem: Super Micro Computer Inc Device 10c9
> >> > Flags: bus master, fast devsel, latency 0
> >> > [virtual] Memory at fbdb8000 (64-bit, non-prefetchable) [size=16K]
> >> > [virtual] Memory at fbd98000 (64-bit, non-prefetchable) [size=16K]
> >> > Capabilities: [70] MSI-X: Enable+ Count=3 Masked-
> >> > Capabilities: [a0] Express Endpoint, MSI 00
> >> > Capabilities: [100] Advanced Error Reporting
> >> > Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
> >> > Kernel driver in use: igbvf
> >>
> >> So it seems that the memory for individual VFs is taken from the BARs listed
> >> inside of PCI_EXT_CAP_ID_SRIOV.
> >
> > Yup! I think that is right as the BIOS also enable SR-IOV to figure out how
> > many bus addresses to reserve for the PCIe device - and then it turn it off.
> > (I know this as I had a motherboard with half-broken implemention that booted
> > in OS with VFs already there).
>
> But remember that in the common case you won't be able to access
> the SR-IOV capability structure before launching Dom0 (as being
> located in extended config space).
Since we need PHYSDEVOP_pci_mmcfg_reserved anyway, the newly added bus will be
scanned in order to find devices, and those SR-IOV BARs will be added then into
the Dom0 memory map.
Roger.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-16 16:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 15:59 [DRAFT RFC] PVHv2 interaction with physical devices Roger Pau Monné
2016-11-09 18:45 ` Konrad Rzeszutek Wilk
2016-11-10 10:39 ` Roger Pau Monné
2016-11-10 13:53 ` Konrad Rzeszutek Wilk
2016-11-10 15:20 ` Roger Pau Monné
2016-11-10 17:21 ` Konrad Rzeszutek Wilk
2016-11-11 10:04 ` Jan Beulich
2016-11-16 16:49 ` Roger Pau Monné [this message]
2016-11-17 10:46 ` Jan Beulich
2016-11-10 16:37 ` Jan Beulich
2016-11-10 17:19 ` Konrad Rzeszutek Wilk
2016-11-16 16:42 ` Roger Pau Monné
2016-11-17 10:43 ` Jan Beulich
2016-11-09 18:51 ` Andrew Cooper
2016-11-09 20:47 ` Pasi Kärkkäinen
2016-11-10 10:43 ` Andrew Cooper
2016-11-10 10:54 ` Roger Pau Monné
2016-11-10 11:23 ` Andrew Cooper
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=20161116164920.mj4rembs4eehitfr@roger.uk.xensource.com \
--to=roger.pau@citrix.com \
--cc=JBeulich@suse.com \
--cc=Kelly.Zytaruk@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=julien.grall@arm.com \
--cc=paul.durrant@citrix.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 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).