From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932785AbdKOWs6 (ORCPT ); Wed, 15 Nov 2017 17:48:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44636 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759060AbdKOWsL (ORCPT ); Wed, 15 Nov 2017 17:48:11 -0500 Date: Wed, 15 Nov 2017 15:48:06 -0700 From: Alex Williamson To: Gerd Hoffmann Cc: Tina Zhang , chris@chris-wilson.co.uk, joonas.lahtinen@linux.intel.com, zhenyuw@linux.intel.com, zhiyuan.lv@intel.com, zhi.a.wang@intel.com, kevin.tian@intel.com, daniel@ffwll.ch, kwankhede@nvidia.com, hang.yuan@intel.com, intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v18 0/6] drm/i915/gvt: Dma-buf support for GVT-g Message-ID: <20171115154806.76917bc4@t450s.home> In-Reply-To: <20171115104900.kcjpva33wfo7aurn@sirius.home.kraxel.org> References: <1510737115-4258-1-git-send-email-tina.zhang@intel.com> <20171115104900.kcjpva33wfo7aurn@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 15 Nov 2017 22:48:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Nov 2017 11:49:00 +0100 Gerd Hoffmann wrote: > On Wed, Nov 15, 2017 at 05:11:49PM +0800, Tina Zhang wrote: > > v17->v18: > > 1) unmap vgpu's opregion when destroying vgpu. > > 2) update comments for VFIO_DEVICE_GET_GFX_DMABUF. (Alex) > > > This patch set adds the dma-buf support for intel GVT-g. > > > > dma-buf is an uniform mechanism to share DMA buffers across different > > devices and subsystems. dma-buf for intel GVT-g is mainly used to share > > the vgpu's framebuffer to userspace to leverage userspace graphics stacks > > to render the framebuffer to the display monitor. > > > > The main idea is that we create a gem object and set vgpu's framebuffer as > > its backing storage. Then, export a dma-buf associated with this gem object. > > With the fd of this dma-buf, userspace can directly handle this buffer. > > > > This patch set can be tried with the following example: > > git://git.kraxel.org/qemu branch: work/intel-vgpu > > > > A topic branch with the latest patch set is: > > https://github.com/intel/gvt-linux.git branch: topic/dmabuf > > Tested-by: Gerd Hoffmann Hi Gerd, Can you share the xml snippets required for the VM to make this work? Last I tried I couldn't get the display/video/hostdev configuration to get any enhanced behavior through the dmabuf. Thanks, Alex