Received: from eggs.gnu.org ([2001:4830:134:3::10]:60706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmNxo-0000br-Dg for qemu-devel@nongnu.org; Tue, 20 Sep 2016 12:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmNxk-00059b-7V for qemu-devel@nongnu.org; Tue, 20 Sep 2016 12:32:07 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:7106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmNxj-00059R-OY for qemu-devel@nongnu.org; Tue, 20 Sep 2016 12:32:03 -0400 References: <00d96f24-5df0-d16b-d4e1-838333989dee@nvidia.com> <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> From: Kirti Wankhede Message-ID: Date: Tue, 20 Sep 2016 22:01:18 +0530 MIME-Version: 1.0 In-Reply-To: <20160920151445.GU25490@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" , Paolo Bonzini Cc: 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 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? Kirti >> Ok, then I guess vendor-specific mdev parameters are out completely. Or >> could they be added under a separate namespace, like QEMU passthrough? > > The QEMU XML namespace that allows passthrough is intended either as a > short term hack to let people experiment with new QEMU features, before > they get explicitly represented in the main XML namespace, or in a few > cases, for things we never want to support officially. Any VM which > uses the separate namespace is tainted, which means if theres a bug > report we'll require the reported to remove whatever config caused > the tainting and then reproduce the problem. > > If the vendor specific mdev parameters are things that apps will often > need to be able to set, then allowing it via a separate namespace is > just providing a backdoor that everyone needs to use, defeating the > point of using a separate namespace. > > We don't want to knowingly design a system which defacto requires > the app to use the separate namespace most/all of the time. > > > Regards, > Daniel >