Received: from eggs.gnu.org ([2001:4830:134:3::10]:52195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqyVC-0001bn-Am for qemu-devel@nongnu.org; Mon, 03 Oct 2016 04:21:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqyV6-000449-9i for qemu-devel@nongnu.org; Mon, 03 Oct 2016 04:21:33 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:13224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqyV6-00043l-15 for qemu-devel@nongnu.org; Mon, 03 Oct 2016 04:21:28 -0400 References: <00d96f24-5df0-d16b-d4e1-838333989dee@nvidia.com> <20160920094753.GB25490@redhat.com> <20160928194833.GA26800@nvidia.com> <20160929080618.GB5312@redhat.com> <20160929143831.GT5312@redhat.com> <22f8b5e9-5b55-b5bb-9f71-12b7f02d4314@nvidia.com> From: Kirti Wankhede Message-ID: Date: Mon, 3 Oct 2016 13:50:43 +0530 MIME-Version: 1.0 In-Reply-To: <22f8b5e9-5b55-b5bb-9f71-12b7f02d4314@nvidia.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v2] libvirt vGPU QEMU integration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Tian, Kevin" , "Daniel P. Berrange" Cc: Neo Jia , "libvir-list@redhat.com" , Andy Currid , qemu-devel , "Song, Jike" , Alex Williamson , Gerd Hoffmann , Paolo Bonzini , "bjsdjshi@linux.vnet.ibm.com" On 9/30/2016 10:49 AM, Kirti Wankhede wrote: > ... >>>>>> Hi Daniel, >>>>>> >>>>>> Here you are proposing to add a class named "gpu", which will make all those gpu >>>>>> related attributes mandatory, which libvirt can allow user to better >>>>>> parse/present a particular mdev configuration? >>>>>> >>>>>> I am just wondering if there is another option that we just make all those >>>>>> attributes that a mdev device can have as optional but still meaningful to >>>>>> libvirt, so libvirt can still parse / recognize them as an class "mdev". >>>>> >>>>> 'mdev' isn't a class - mdev is the name of the kernel module. The class >>>>> refers to the broad capability of the device. class would be things >>>>> like "gpu", "nic", "fpga" or other such things. The point of the class >>>>> is to identify which other attributes will be considered mandatory. >>>>> >>>>> >>>> >>>> Thanks Daniel. This class definition makes sense to me. >>>> >>>> However I'm not sure whether we should define such common mandatory attributes >>>> of a 'gpu' class now. Intel will go with a 2's power sharing of type definition... actual >>>> type name to be finalized, but an example looks like below: >>>> >>>> [GVTG-SKL-x2]: available instances (2) >>>> [GVTG-SKL-x4]: available instances (4) >>>> [GVTG-SKL-x8]: available instances (8) >>>> ... >>>> >>>> User can create different types of vGPUs simultaneously. A GVTG-SKL-x2 type >>>> vGPU will get half of the physical GPU resource, while a GVTG-SKL-x4 type will >>>> get a quarter. However it's unclear to me how we want to enumerate those >>>> resources into resolution or heads. I feel it'd be more reasonable for us to push >>>> initial libvirt mdev support w/o vgpu specific class definition, until we see >>>> a clear value of doing so (at that time we then follow Daniel's guideline to define >>>> mandatory attributes common to all GPU vendors). >>> >>> Libvirt won't report arbitrary vendor define attributes. So if we are not >>> going to define a gpu class & associated attributes, then there will be >>> no reporting of the 'heads', 'resolution', 'fb_length' data described >>> above. >>> >> >> yes, that's my point. I think nvidia may put them into the 'description' attribute >> just for descriptive purpose for now. > > > Will libvirt report 'description' RO attribute, its output would be > string, so that user could be able to see the configuration of that > profile? > Daniel, Waiting for your input on this. > We can have 'class' as optional attribute. So Intel don't have to > provide 'class' attribute and they don't have to specify mandatory > attributes of that class. We would provide 'class' attribute and provide > mandatory attributes. Thanks, Kirti