From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jike Song Subject: Re: VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...) Date: Mon, 25 Jan 2016 19:34:22 +0800 Message-ID: <56A6083E.10703@intel.com> References: <569C5071.6080004@intel.com> <1453092476.32741.67.camel@redhat.com> <569CA8AD.6070200@intel.com> <1453143919.32741.169.camel@redhat.com> <569F4C86.2070501@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "Tian, Kevin" , Gerd Hoffmann , Paolo Bonzini , "Lv, Zhiyuan" , "Ruan, Shuai" , "kvm@vger.kernel.org" , qemu-devel , "igvt-g@lists.01.org" To: Alex Williamson Return-path: Received: from mga01.intel.com ([192.55.52.88]:46038 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756817AbcAYLeD (ORCPT ); Mon, 25 Jan 2016 06:34:03 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 01/20/2016 05:05 PM, Tian, Kevin wrote: > I would expect we can spell out next level tasks toward above > direction, upon which Alex can easily judge whether there are > some common VFIO framework changes that he can help :-) Hi Alex, Here is a draft task list after a short discussion w/ Kevin, would you please have a look? Bus Driver { in i915/vgt/xxx.c } - define a subset of vfio_pci interfaces - selective pass-through (say aperture) - trap MMIO: interface w/ QEMU IOMMU { in a new vfio_xxx.c } - allocate: struct device & IOMMU group - map/unmap functions for vgpu - rb-tree to maintain iova/hpa mappings - interacts with kvmgt.c vgpu instance management { in i915 } - path, create/destroy -- Thanks, Jike