From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW1qE-00025T-0E for qemu-devel@nongnu.org; Wed, 17 Feb 2016 08:08:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW1q9-0003cW-0x for qemu-devel@nongnu.org; Wed, 17 Feb 2016 08:08:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW1q8-0003c4-S5 for qemu-devel@nongnu.org; Wed, 17 Feb 2016 08:08:20 -0500 Message-ID: <1455714498.9127.28.camel@redhat.com> From: Gerd Hoffmann Date: Wed, 17 Feb 2016 14:08:18 +0100 In-Reply-To: <20160217075448.GC9416@nvidia.com> References: <20160216075310.GC6867@nvidia.com> <20160216084855.GA7717@nvidia.com> <20160217041743.GA7903@nvidia.com> <20160217053742.GA8839@nvidia.com> <20160217072610.GA9416@nvidia.com> <20160217075448.GC9416@nvidia.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [RFC PATCH v1 1/1] vGPU core driver : to provide common interface for vGPU. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Neo Jia Cc: "Ruan, Shuai" , "Tian, Kevin" , Alex Williamson , "kvm@vger.kernel.org" , qemu-devel , "Song, Jike" , Kirti Wankhede , "Lv, Zhiyuan" , Paolo Bonzini Hi, > For example, how to locate the path of a given VM? You go ask libvirt, the domain xml will have the info. > Whoever is going to configure > the qemu has to walk through *all* the current vgpu path to locate the UU= ID to > match the QEMU's VM UUID. No. qemu simply uses the path it get passed from libvirt. libvirt simply uses whatever is stored in the domain xml. i.e. you'll have a config like this: =20 rhel7-vfio 0990b05d-4fbd-49bf-88e4-e87974c64fba [ ... ] [ ... ]
> I think I has answered this, UUID is not a user space or kernel space > concept, it is just a generic way to represent object, Yes. But the above sounds like you want to use UUIDs to *link* two objects, by assigning the same uuid to both vm and vgpu. This is *not* how uuids should be used. Each object should have its own uuid. You can use uuids to name the vgpus if you want of course. But the vgpu uuid will will have no relationship whatsoever to the vm uuid then. cheers, Gerd