RE: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-10 Thread Zhang, Tina
an...@intel.com>; dan...@ffwll.ch; Zhang, Tina > <tina.zh...@intel.com>; intel-gvt-...@lists.freedesktop.org; Wang, Zhi A > <zhi.a.w...@intel.com> > Subject: Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation > > On Thu, Nov 09, 2017 at 01:54:57PM -07

RE: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-10 Thread Zhang, Tina
p.org; > joonas.lahti...@linux.intel.com; linux-kernel@vger.kernel.org; > zhen...@linux.intel.com; ch...@chris-wilson.co.uk; kwankh...@nvidia.com; > Lv, Zhiyuan ; dan...@ffwll.ch; Zhang, Tina > ; intel-gvt-...@lists.freedesktop.org; Wang, Zhi A > > Subject: Re: [PATCH v17

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Gerd Hoffmann
On Thu, Nov 09, 2017 at 01:54:57PM -0700, Alex Williamson wrote: > On Thu, 9 Nov 2017 19:35:14 +0100 > Gerd Hoffmann wrote: > > > Hi, > > > > > struct vfio_device_gfx_plane_info lacks the head field we've been > > > discussing. Thanks, > > > > Adding multihead support

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Gerd Hoffmann
On Thu, Nov 09, 2017 at 01:54:57PM -0700, Alex Williamson wrote: > On Thu, 9 Nov 2017 19:35:14 +0100 > Gerd Hoffmann wrote: > > > Hi, > > > > > struct vfio_device_gfx_plane_info lacks the head field we've been > > > discussing. Thanks, > > > > Adding multihead support turned out to not be

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Alex Williamson
On Thu, 9 Nov 2017 19:35:14 +0100 Gerd Hoffmann wrote: > Hi, > > > struct vfio_device_gfx_plane_info lacks the head field we've been > > discussing. Thanks, > > Adding multihead support turned out to not be that easy. There are > corner cases like a single framebuffer

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Alex Williamson
On Thu, 9 Nov 2017 19:35:14 +0100 Gerd Hoffmann wrote: > Hi, > > > struct vfio_device_gfx_plane_info lacks the head field we've been > > discussing. Thanks, > > Adding multihead support turned out to not be that easy. There are > corner cases like a single framebuffer spawning both

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Gerd Hoffmann
Hi, > struct vfio_device_gfx_plane_info lacks the head field we've been > discussing. Thanks, Adding multihead support turned out to not be that easy. There are corner cases like a single framebuffer spawning both heads. Also it would be useful to somehow hint to the guest which heads it

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Gerd Hoffmann
Hi, > struct vfio_device_gfx_plane_info lacks the head field we've been > discussing. Thanks, Adding multihead support turned out to not be that easy. There are corner cases like a single framebuffer spawning both heads. Also it would be useful to somehow hint to the guest which heads it

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Alex Williamson
On Thu, 9 Nov 2017 17:34:01 +0800 Tina Zhang wrote: > Add VFIO_DEVICE_QUERY_GFX_PLANE ioctl command to let user query and get > a plane and its related information. So far, two types of buffers are > supported: buffers based on dma-buf and buffers based on region. > >

Re: [PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Alex Williamson
On Thu, 9 Nov 2017 17:34:01 +0800 Tina Zhang wrote: > Add VFIO_DEVICE_QUERY_GFX_PLANE ioctl command to let user query and get > a plane and its related information. So far, two types of buffers are > supported: buffers based on dma-buf and buffers based on region. > > This ioctl can be invoked

[PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Tina Zhang
Add VFIO_DEVICE_QUERY_GFX_PLANE ioctl command to let user query and get a plane and its related information. So far, two types of buffers are supported: buffers based on dma-buf and buffers based on region. This ioctl can be invoked with: 1) either DMABUF or REGION flag. Vendor driver returns a

[PATCH v17 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-09 Thread Tina Zhang
Add VFIO_DEVICE_QUERY_GFX_PLANE ioctl command to let user query and get a plane and its related information. So far, two types of buffers are supported: buffers based on dma-buf and buffers based on region. This ioctl can be invoked with: 1) either DMABUF or REGION flag. Vendor driver returns a