From: Laszlo Ersek <lersek@redhat.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Igor Mammedov <imammedo@redhat.com>,
Drew Jones <drjones@redhat.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: PV passthrough of sibling igbvf's
Date: Tue, 16 Oct 2012 17:04:20 +0200 [thread overview]
Message-ID: <507D7774.2050902@redhat.com> (raw)
In-Reply-To: <507D7240.2010305@citrix.com>
Hi,
On 10/16/12 16:42, Andrew Cooper wrote:
> I would hazard a guess that the real bug is trying to fake up 8
> individual virtual functions as an 8-fuction device, which seems like a
> toolstack bug to me.
I believe that comes from:
>> The VPCI
>> implementation of pciback_add_pci_dev() [drivers/xen/pciback/vpci.c]
>> will assign these sibling functions to the same virtual slot. In other
>> words, VFs that are siblings in dom0 end up as siblings in the PV domU.
This grouping-together of virtual functions is the same in current
upstream Linux:
>> (Upstream path and function: "drivers/xen/xen-pciback/vpci.c",
>> __xen_pcibk_add_pci_dev().)
(+ match_slot())
>>
>> This logic appears to date back to
>> <http://xenbits.xensource.com/xen-unstable.hg/rev/5b433b4fca34>.
A closer pointer into the changeset:
http://xenbits.xensource.com/xen-unstable.hg/rev/5b433b4fca34#l16.85
The patch doesn't seem to justify the grouping specifically, thus I did
not even try to refute it.
Now that you point it out, match_slot() is probably insufficient grounds
to group functions together. Maybe we should check *additionally* if the
device being passed through is multi-function. I'll try it.
Thanks!
Laszlo
next prev parent reply other threads:[~2012-10-16 15:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-16 14:21 PV passthrough of sibling igbvf's Laszlo Ersek
2012-10-16 14:42 ` Andrew Cooper
2012-10-16 15:04 ` Laszlo Ersek [this message]
2012-10-16 15:37 ` Andrew Cooper
2012-10-16 17:36 ` [PATCH] xen PV passthru: assign SR-IOV virtual functions to separate virtual slots Laszlo Ersek
2012-10-17 7:13 ` Jan Beulich
2012-10-17 9:55 ` [PATCH v2] " Laszlo Ersek
2012-10-17 10:01 ` Jan Beulich
2012-10-17 14:51 ` 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=507D7774.2050902@redhat.com \
--to=lersek@redhat.com \
--cc=andrew.cooper3@citrix.com \
--cc=drjones@redhat.com \
--cc=imammedo@redhat.com \
--cc=konrad.wilk@oracle.com \
--cc=pbonzini@redhat.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.