From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [RFC PATCH v1 1/1] vGPU core driver : to provide common interface for vGPU. Date: Tue, 02 Feb 2016 09:00:43 +0100 Message-ID: <1454400043.9300.31.camel@redhat.com> References: <56AFD231.3010404@nvidia.com> <56B00AD7.6070103@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: Kirti Wankhede , Alex Williamson , Neo Jia , Paolo Bonzini , "Ruan, Shuai" , "Song, Jike" , "Lv, Zhiyuan" , "kvm@vger.kernel.org" , qemu-devel To: "Tian, Kevin" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45763 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753139AbcBBIAp convert rfc822-to-8bit (ORCPT ); Tue, 2 Feb 2016 03:00:45 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Hi, > And for UUID, I remember Alex had a concern on using it in kernel. > Honestly speaking I don't have a good idea here. In Xen side there is a VM ID > which can be easily used as the index. But for KVM, what would be the best > 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