Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756342Ab0FCReZ (ORCPT ); Thu, 3 Jun 2010 13:34:25 -0400 Received: from mga01.intel.com ([192.55.52.88]:47545 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754724Ab0FCReX convert rfc822-to-8bit (ORCPT ); Thu, 3 Jun 2010 13:34:23 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,355,1272870000"; d="scan'208";a="804479804" From: "Williams, Mitch A" To: Frank Pan CC: Greg KH , Andrew Morton , Jesse Barnes , Kenji Kaneshige , Yu Zhao , Chris Wright , "Rafael J. Wysocki" , "David S. Miller" , Matt Carlson , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Thu, 3 Jun 2010 11:10:38 -0600 Subject: RE: Add a helper function in PCI IOV to get VF device Thread-Topic: Add a helper function in PCI IOV to get VF device Thread-Index: AcsCyn3qoUdB+xVdQpayC9H2KYPqqgAdMSXA Message-ID: References: <20100601183920.GB19955@kroah.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1342 Lines: 39 >-----Original Message----- >From: Frank Pan [mailto:frankpzh@gmail.com] >Sent: Wednesday, June 02, 2010 8:11 PM [snip] >So, the motivation is provide some information about vf from pf driver by >sysfs. > >I cannot avoid to create one directory for each vf, like vf0, vf1, >etc. Although userspace can find these directories, but it has no idea >about which one to use. Userspace just knows vf's bdf, it won't care >about/know vf's id. So I have the issue to create a symlink from each >vf's /sys/bus/pci/devices/xxxx/ to their corresponding directories. > >And then comes the issue: PF cannot get VF's bdf in kernel space. > >This is not a strange issue, hacking every SR-IOV device can met. > Frank, I still don't understand what you're trying to do here. What's the use case? What is the end goal that you're trying to get to? What information do you need about the VF, and why? SR-IOV works properly today without this stuff. If we can understand what you're trying to do, then maybe we can help. -Mitch >Thanks. > >-- >Frank Pan > >Computer Science and Technology >Tsinghua University -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/