From: Yu Zhao Subject: [PATCH 12/13 v7] PCI: document the SR-IOV sysfs entries Date: Sat, 22 Nov 2008 02:43:59 +0800 Message-ID: <20081121184359.GM7810@yzhao12-linux.sh.intel.com> References: <20081121183605.GA7810@yzhao12-linux.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "achiang@hp.com" , "bjorn.helgaas@hp.com" , "grundler@parisc-linux.org" , "greg@kroah.com" , "mingo@elte.hu" , "jbarnes@virtuousgeek.org" , "matthew@wil.cx" , "randy.dunlap@oracle.com" , "rdreier@cisco.com" , "horms@verge.net.au" , "yinghai@kernel.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" To: "linux-pci@vger.kernel.org" Return-path: Received: from mga02.intel.com ([134.134.136.20]:32658 "EHLO mga02.intel.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1758148AbYKUTkt (ORCPT ); Fri, 21 Nov 2008 14:40:49 -0500 Content-Disposition: inline In-Reply-To: <20081121183605.GA7810@yzhao12-linux.sh.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: Document the SR-IOV sysfs entries. Signed-off-by: Yu Zhao --- Documentation/ABI/testing/sysfs-bus-pci | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci index ceddcff..d66d63d 100644 --- a/Documentation/ABI/testing/sysfs-bus-pci +++ b/Documentation/ABI/testing/sysfs-bus-pci @@ -9,3 +9,29 @@ Description: that some devices may have malformatted data. If the underlying VPD has a writable section then the corresponding section of this file will be writable. + +What: /sys/bus/pci/devices/.../iov/total_virtfn +Date: November 2008 +Contact: Yu Zhao +Description: + This file appears when a device has the SR-IOV capability + and the device driver (PF driver) support this operation. + It holds the number of total Virtual Functions (read-only). + +What: /sys/bus/pci/devices/.../iov/initial_virtfn +Date: November 2008 +Contact: Yu Zhao +Description: + This file appears when a device has the SR-IOV capability + and the device driver (PF driver) support this operation. + It holds the number of initial Virtual Functions (read-only). + +What: /sys/bus/pci/devices/.../iov/nr_virtfn +Date: November 2008 +Contact: Yu Zhao +Description: + This file appears when a device has the SR-IOV capability + and the device driver (PF driver) support this operation. + It holds the number of available Virtual Functions, and + could be written (0 ~ InitialVFs) to change the number of + the Virtual Functions. -- 1.5.6.4