From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jike Song Subject: Re: [PATCH v8 4/6] docs: Add Documentation for Mediated devices Date: Fri, 14 Oct 2016 10:22:02 +0800 Message-ID: <5800414A.1030002@intel.com> References: <1476131317-358-1-git-send-email-kwankhede@nvidia.com> <1476131317-358-5-git-send-email-kwankhede@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kevin.tian@intel.com, cjia@nvidia.com, kvm@vger.kernel.org, qemu-devel@nongnu.org, alex.williamson@redhat.com, kraxel@redhat.com, pbonzini@redhat.com, bjsdjshi@linux.vnet.ibm.com To: Kirti Wankhede Return-path: In-Reply-To: <1476131317-358-5-git-send-email-kwankhede@nvidia.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On 10/11/2016 04:28 AM, Kirti Wankhede wrote: > + > +Under per-physical device sysfs: > +-------------------------------- > + > +* mdev_supported_types: > + List of current supported mediated device types and its details are added > +in this directory in following format: > + > +|- > +|--- Vendor-specific-attributes [optional] > +|--- mdev_supported_types > +| |--- > +| | |--- create > +| | |--- name > +| | |--- available_instances > +| | |--- description /class > +| | |--- [devices] > +| |--- > +| | |--- create > +| | |--- name > +| | |--- available_instances > +| | |--- description /class > +| | |--- [devices] > +| |--- > +| |--- create > +| |--- name > +| |--- available_instances > +| |--- description /class > +| |--- [devices] > + > +[TBD : description or class is yet to be decided. This will change.] > + > +Under per mdev device: > +---------------------- > + > +|- > +|--- $MDEV_UUID > + |--- remove > + |--- {link to its type} > + |--- vendor-specific-attributes [optional] > + All mdev directories are placed under physical device directly. Looking at the sysfs directory of physical device, you get: |--- mdev_supported_types/ | |--- type1/ | |--- type2/ | |--- type3/ |--- mdev1/ |--- mdev2/ With an independent device between physical and mdev, and names simplified, you will get: |--- mdev/ | |--- supported_type1/ | |--- supported_type2/ | |--- supported_type3/ | |--- mdev1/ | |--- mdev2/ i.e. everything related to mdev are placed under one single directory - the same as SR-IOV. I'm not sure if it is possible without introducing an independent device (which you apparently dislike), but placing so many mdev directories under physical doesn't seems clean. -- Thanks, Jike