From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1qSl-0004kj-EH for qemu-devel@nongnu.org; Wed, 02 Nov 2016 04:00:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1qSg-0004C0-KC for qemu-devel@nongnu.org; Wed, 02 Nov 2016 03:59:59 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:6441) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1qSg-0004Ad-CZ for qemu-devel@nongnu.org; Wed, 02 Nov 2016 03:59:54 -0400 References: <1477517366-27871-1-git-send-email-kwankhede@nvidia.com> <1477517366-27871-19-git-send-email-kwankhede@nvidia.com> <5816F074.1010108@intel.com> From: Kirti Wankhede Message-ID: <1e834365-b1d2-57f5-1bae-659341b69951@nvidia.com> Date: Wed, 2 Nov 2016 13:25:28 +0530 MIME-Version: 1.0 In-Reply-To: <5816F074.1010108@intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v10 18/19] docs: Sysfs ABI for mediated device framework List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jike Song Cc: alex.williamson@redhat.com, pbonzini@redhat.com, kraxel@redhat.com, cjia@nvidia.com, qemu-devel@nongnu.org, kvm@vger.kernel.org, kevin.tian@intel.com, bjsdjshi@linux.vnet.ibm.com, linux-kernel@vger.kernel.org On 10/31/2016 12:49 PM, Jike Song wrote: > On 10/27/2016 05:29 AM, Kirti Wankhede wrote: >> Added details of sysfs ABI for mediated device framework >> >> Signed-off-by: Kirti Wankhede >> Signed-off-by: Neo Jia >> Change-Id: Icb0fd4ed58a2fa793fbcb1c3d5009a4403c1f3ac >> --- >> Documentation/ABI/testing/sysfs-bus-vfio-mdev | 111 ++++++++++++++++++++++++++ >> 1 file changed, 111 insertions(+) >> create mode 100644 Documentation/ABI/testing/sysfs-bus-vfio-mdev >> >> diff --git a/Documentation/ABI/testing/sysfs-bus-vfio-mdev b/Documentation/ABI/testing/sysfs-bus-vfio-mdev >> new file mode 100644 >> index 000000000000..452dbe39270e >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-bus-vfio-mdev >> @@ -0,0 +1,111 @@ >> +What: /sys/...//mdev_supported_types/ >> +Date: October 2016 >> +Contact: Kirti Wankhede >> +Description: >> + This directory contains list of directories of currently >> + supported mediated device types and their details for >> + . Supported type attributes are defined by the >> + vendor driver who registers with Mediated device framework. >> + Each supported type is a directory whose name is created >> + by adding the device driver string as a prefix to the >> + string provided by the vendor driver. >> + >> +What: /sys/...//mdev_supported_types// >> +Date: October 2016 >> +Contact: Kirti Wankhede >> +Description: >> + This directory gives details of supported type, like name, >> + description, available_instances, device_api etc. >> + 'device_api' and 'available_instances' are mandatory >> + attributes to be provided by vendor driver. 'name', >> + 'description' and other vendor driver specific attributes >> + are optional. >> + > > Hi Kirti, > > Is there any checking in the mdev framework that mandatory attributes > are actually provided? > No. These are exposed so that libvirt can use those to create devices. If those are not provided, libvirt would not work. Kirti.