From: Chris Wright <chrisw@sous-sol.org>
To: Frank Pan <frankpzh@gmail.com>
Cc: Chris Wright <chrisw@sous-sol.org>,
"Williams, Mitch A" <mitch.a.williams@intel.com>,
Greg KH <greg@kroah.com>,
Andrew Morton <akpm@linux-foundation.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
"David S. Miller" <davem@davemloft.net>,
Matt Carlson <mcarlson@broadcom.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Add a helper function in PCI IOV to get VF device
Date: Tue, 8 Jun 2010 15:12:44 -0700 [thread overview]
Message-ID: <20100608221244.GL8301@sequoia.sous-sol.org> (raw)
In-Reply-To: <AANLkTil7ZIqfdYeNA1dkfIDoKPeWU-FIArR-n-1HjqEz@mail.gmail.com>
* Frank Pan (frankpzh@gmail.com) wrote:
> > VF is often loaded on the physical machine. There's also a networking
> > specific mechanism for querying and configuring a VF via the PF.
> ? I don't really understand. What do you mean load? I don't think
> physical machine is able to use it as a hardware device.
Yes, it is possible. Your example of igb...igbvf driver can be loaded
on physical machine and drive a VF instance. In fact, this is a pretty
normal mode for KVM.
> > While your patch is simple, it's unclear to me what your end goal is.
> > The patch itself only adds a function. if you showed how you are
> > planning to use it, that would really help.
> Currently my hack is applied on 2.6.18 because of xen's limitation. As
> Mitch says, igb driver is significantly different with recent ones. On
> the other hand, my hack just exposes several PCI configuration and
> MMIO registers to the sysfs, you will only understand the use case
> when you also see the userspace hacks.
OK, but this sounds like the wrong approach. We already have a
mechanism for using the PF to program a VF. Have a look at the netlink
interface. Specifically, do_setvfinfo().
thanks,
-chris
next prev parent reply other threads:[~2010-06-08 22:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-01 5:05 Add a helper function in PCI IOV to get VF device Frank Pan
2010-06-01 18:39 ` Greg KH
2010-06-01 18:57 ` Williams, Mitch A
2010-06-02 6:12 ` Frank Pan
2010-06-02 18:59 ` Williams, Mitch A
2010-06-03 2:57 ` Frank Pan
2010-06-03 3:11 ` Frank Pan
2010-06-03 17:10 ` Williams, Mitch A
2010-06-04 2:28 ` Frank Pan
2010-06-03 17:56 ` Chris Wright
2010-06-04 2:43 ` Frank Pan
2010-06-08 22:12 ` Chris Wright [this message]
2010-06-02 6:02 ` Frank Pan
2010-06-08 21:35 ` Jesse Barnes
2010-06-11 7:42 ` Frank Pan
2010-06-18 17:17 ` Jesse Barnes
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=20100608221244.GL8301@sequoia.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=frankpzh@gmail.com \
--cc=greg@kroah.com \
--cc=jbarnes@virtuousgeek.org \
--cc=kaneshige.kenji@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mcarlson@broadcom.com \
--cc=mitch.a.williams@intel.com \
--cc=rjw@sisk.pl \
/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