From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVwb9-0007Gm-NU for qemu-devel@nongnu.org; Wed, 17 Feb 2016 02:32:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVwb4-0001nU-IQ for qemu-devel@nongnu.org; Wed, 17 Feb 2016 02:32:31 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:12745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVwb4-0001mn-A3 for qemu-devel@nongnu.org; Wed, 17 Feb 2016 02:32:26 -0500 Date: Tue, 16 Feb 2016 23:32:23 -0800 From: Neo Jia Message-ID: <20160217073223.GB9416@nvidia.com> References: <20160216071304.GA6867@nvidia.com> <20160216073647.GB6867@nvidia.com> <20160216075310.GC6867@nvidia.com> <20160216084855.GA7717@nvidia.com> <20160217041743.GA7903@nvidia.com> <1455691973.9127.10.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1455691973.9127.10.camel@redhat.com> 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: Gerd Hoffmann Cc: "Ruan, Shuai" , "Song, Jike" , "kvm@vger.kernel.org" , "Tian, Kevin" , Kirti Wankhede , qemu-devel , Alex Williamson , "Lv, Zhiyuan" , Paolo Bonzini On Wed, Feb 17, 2016 at 07:52:53AM +0100, Gerd Hoffmann wrote: > Hi, > > > The answer is simple, having a UUID as part of the device name will give you a > > unique sysfs path that will be opened by QEMU. > > A descriptive name will work too, and I think it'll be easier to make > those names persistent because you don't have to store the uuids > somewhere to re-create the same setup afer reboot. Hi Gerd, Right, UUID will be persistent cross reboot. The qemu vgpu path for a given VM will not get changed when it gets reboots and multiple other devices have been created in the middle. > > > If you are worried about losing meaningful name here, we can create a sysfs file > > to capture the vendor device description if you like. > > You can also store the uuid in a sysfs file ... Another benefit is that having the UUID as part of the virtual vgpu device path will allow whoever is going to config the QEMU to automatically discover the virtual device sysfs for free. Thanks, Neo > > cheers, > Gerd >