Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754217AbdGNMQF (ORCPT ); Fri, 14 Jul 2017 08:16:05 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:4970 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754026AbdGNMQB (ORCPT ); Fri, 14 Jul 2017 08:16:01 -0400 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 14 Jul 2017 05:15:54 -0700 Subject: Re: [PATCH v10] vfio: ABI for mdev display dma-buf operation To: Gerd Hoffmann , "Zhang, Tina" , "Tian, Kevin" , "linux-kernel@vger.kernel.org" , "intel-gfx@lists.freedesktop.org" , "alex.williamson@redhat.com" , "zhenyuw@linux.intel.com" , "chris@chris-wilson.co.uk" , "Lv, Zhiyuan" , "intel-gvt-dev@lists.freedesktop.org" , "Wang, Zhi A" References: <1499293795-6265-1-git-send-email-tina.zhang@intel.com> <980a5c09-fa8a-255d-19ad-acf4bb29d271@nvidia.com> <1499753648.8257.3.camel@redhat.com> <20170711091236.run4zirxmr34kazb@phenom.ffwll.local> <237F54289DF84E4997F34151298ABEBC7C57BF86@SHSMSX101.ccr.corp.intel.com> <20170712074038.izr6ureby4vwtq27@phenom.ffwll.local> <237F54289DF84E4997F34151298ABEBC7C57E3FF@SHSMSX101.ccr.corp.intel.com> <2c07d8ee-d974-33ec-2cf4-b320fc466c88@nvidia.com> <1500033939.28252.16.camel@redhat.com> X-Nvconfidentiality: public From: Kirti Wankhede Message-ID: <100da721-b765-ed65-7b4b-86e737e2889d@nvidia.com> Date: Fri, 14 Jul 2017 17:45:45 +0530 MIME-Version: 1.0 In-Reply-To: <1500033939.28252.16.camel@redhat.com> X-Originating-IP: [10.24.70.138] X-ClientProxiedBy: BGMAIL102.nvidia.com (10.25.59.11) To bgmail102.nvidia.com (10.25.59.11) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 709 Lines: 24 On 7/14/2017 5:35 PM, Gerd Hoffmann wrote: > Hi, > >> There could be only two planes, one DRM_PLANE_TYPE_PRIMARY and one >> DRM_PLANE_TYPE_CURSOR. >> Steps from gfx_update for region case would be: >> - VFIO_DEVICE_QUERY_GFX_PLANE with plane_type = >> DRM_PLANE_TYPE_PRIMARY > >> - if vfio_device_gfx_plane_info.size > 0, read region for primary >> surface and update console surface > > Why? I suspect you want notify the caller whenever the surface has > been updated or not? If so we should add an explicit flag or field for > that. > No need of flag here. If vGPU driver is not loaded in the guest, there is no surface being managed by vGPU, in that case this size will be zero. Thanks, Kirti