From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQVtK-0006EO-RY for qemu-devel@nongnu.org; Tue, 02 Feb 2016 03:00:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQVtF-0002or-W0 for qemu-devel@nongnu.org; Tue, 02 Feb 2016 03:00:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQVtF-0002on-Qn for qemu-devel@nongnu.org; Tue, 02 Feb 2016 03:00:45 -0500 Message-ID: <1454400043.9300.31.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 02 Feb 2016 09:00:43 +0100 In-Reply-To: References: <56AFD231.3010404@nvidia.com> <56B00AD7.6070103@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: "Tian, Kevin" Cc: "Ruan, Shuai" , "Song, Jike" , Neo Jia , "kvm@vger.kernel.org" , Alex Williamson , qemu-devel , Kirti Wankhede , "Lv, Zhiyuan" , Paolo Bonzini Hi, > And for UUID, I remember Alex had a concern on using it in kernel.=20 > Honestly speaking I don't have a good idea here. In Xen side there is a V= M ID > which can be easily used as the index. But for KVM, what would be the bes= t > identifier to associate with a VM? The vgpu code doesn't need to associate the vgpu device with a vm in the first place. You get all guest address space information from qemu, via vfio iommu interface. When qemu does't use kvm (tcg mode), things should still work fine. Using vfio-based vgpu devices with non-qemu apps (some kind of test suite for example) should work fine too. cheers, Gerd