From: Chao Gao <chao.gao@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "Tim Deegan" <tim@xen.org>, "Kevin Tian" <kevin.tian@intel.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Wei Liu" <wei.liu2@citrix.com>,
"George Dunlap" <George.Dunlap@eu.citrix.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Ian Jackson" <ian.jackson@eu.citrix.com>,
xen-devel@lists.xen.org,
"Crawford Eric R" <Eric.R.Crawford@intel.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH v7] VT-d: use correct BDF for VF to search VT-d unit
Date: Wed, 23 Aug 2017 15:39:15 +0800 [thread overview]
Message-ID: <20170823073912.GA6683@op-computing> (raw)
In-Reply-To: <599D5328020000780017253B@prv-mh.provo.novell.com>
On Wed, Aug 23, 2017 at 02:04:24AM -0600, Jan Beulich wrote:
>>>> On 23.08.17 at 03:05, <chao.gao@intel.com> wrote:
>> Strictly speaking, the VF can be an extended function. The definition is
>> within ARI device (in this kind of device, device field is treated as an
>> extension of function number) and function number is greater than 7. But
>> this field isn't used as we don't care about whether a VF is or not an
>> extended function (at least at present).
>
>Hmm, that's not in line with what Linux'es xen_add_device() does:
>
>#ifdef CONFIG_PCI_IOV
> if (pci_dev->is_virtfn) {
> add->flags = XEN_PCI_DEV_VIRTFN;
> add->physfn.bus = physfn->bus->number;
> add->physfn.devfn = physfn->devfn;
> } else
>#endif
> if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn))
> add->flags = XEN_PCI_DEV_EXTFN;
>
>Note the "else" in there. Are you saying this is actually wrong? (I
>indeed do see ARI capability structures in the VFs of the one
>SR-IOV capable system I have direct access to.)
Yes. I think it is wrong. Considering no one in Xen needs this
information, don't set XEN_PCI_DEV_EXTFN for VF is acceptable.
Thanks
Chao
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-08-23 7:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-21 21:52 [PATCH v7] VT-d: use correct BDF for VF to search VT-d unit Chao Gao
2017-08-22 7:29 ` Roger Pau Monné
2017-08-22 8:48 ` Chao Gao
2017-08-22 12:43 ` Jan Beulich
2017-08-23 1:05 ` Chao Gao
2017-08-23 7:16 ` Roger Pau Monné
2017-08-23 7:20 ` Jan Beulich
2017-08-23 7:31 ` Roger Pau Monné
2017-08-23 6:46 ` Chao Gao
2017-08-23 8:01 ` Roger Pau Monné
2017-08-23 7:42 ` Chao Gao
2017-08-23 8:52 ` Jan Beulich
2017-08-24 7:29 ` Tian, Kevin
2017-08-23 8:00 ` Jan Beulich
2017-08-23 8:04 ` Jan Beulich
2017-08-23 7:39 ` Chao Gao [this message]
2017-08-23 8:51 ` Jan Beulich
2017-08-24 7:22 ` Tian, Kevin
[not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D190D80DD6@SHSMSX101.ccr.corp.intel.com>
2017-08-24 8:01 ` Tian, Kevin
2017-08-24 8:22 ` Jan Beulich
2017-08-24 9:36 ` Chao Gao
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=20170823073912.GA6683@op-computing \
--to=chao.gao@intel.com \
--cc=Eric.R.Crawford@intel.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=kevin.tian@intel.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.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 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.