Received: from eggs.gnu.org ([2001:4830:134:3::10]:35626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmO8b-0007Id-Kj for qemu-devel@nongnu.org; Tue, 20 Sep 2016 12:43:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmO8X-0000CR-HQ for qemu-devel@nongnu.org; Tue, 20 Sep 2016 12:43:16 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:8061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmO8X-0000CB-8y for qemu-devel@nongnu.org; Tue, 20 Sep 2016 12:43:13 -0400 References: <20160919153600.70599974@t450s.home> <8e7e7357-cad4-f9ca-4104-97cadd347a13@redhat.com> <20160919162521.3569caa2@t450s.home> <32b91537-0d83-a312-db19-7341650c3d4a@nvidia.com> <20160920144152.GS25490@redhat.com> <3426a530-6741-e567-56d7-735bd5c98b54@redhat.com> <20160920145808.GT25490@redhat.com> <9e80c4e6-a94f-0fb3-7d57-9ac8ffe53738@redhat.com> <20160920151445.GU25490@redhat.com> <20160920163618.GC3012@redhat.com> From: Kirti Wankhede Message-ID: Date: Tue, 20 Sep 2016 22:12:20 +0530 MIME-Version: 1.0 In-Reply-To: <20160920163618.GC3012@redhat.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: "Daniel P. Berrange" Cc: Paolo Bonzini , Alex Williamson , Andy Currid , "Tian, Kevin" , Neo Jia , "libvir-list@redhat.com" , qemu-devel , "Song, Jike" , Gerd Hoffmann , "bjsdjshi@linux.vnet.ibm.com" On 9/20/2016 10:06 PM, Daniel P. Berrange wrote: > On Tue, Sep 20, 2016 at 10:01:18PM +0530, Kirti Wankhede wrote: >> >> >> On 9/20/2016 8:44 PM, Daniel P. Berrange wrote: >>> On Tue, Sep 20, 2016 at 05:05:43PM +0200, Paolo Bonzini wrote: >>>> >>>> >>>> On 20/09/2016 16:58, Daniel P. Berrange wrote: >>>>>>> As I've said in my earlier reply - libvirt will *NOT* support passing >>>>>>> arbitrary vendor specific parameters as a blob via the XML. Everything >>>>>>> that appears in the XML must be *fully* specified and explicitly >>>>>>> represented in the XML as a distinct attribute or element. >>>>>> >>>>>> Are generic key/value attributes (e.g. a element) acceptable? >>>>> >>>>> Only if libvirt has a known list of valid attribute key names upfront. >>>>> We don't want to just blindly expose arbitary vendor specific keys exposed >>>>> by the kernel. Libvirt's job is to ensure the XML representation is vendor >>>>> portable >>>> >> >> In key/value attributes (taking example from proposed xml file) >> >> 2560x1600 >> >> 'Key' (i.e. 'resolution') should be known upfront, not the value, right? > > Yes, the actual value is not important - only its structured. > ie, libvirt would check that it is in the format '$WIDTHx$HEIGHT' > and reject it if not. > In this particular example, libvirt checks if its integer? or value could be 2560x1600 or 4096x4096 both are valid? Does libvirt accept string value? Kirti