From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933130AbdKFUhC convert rfc822-to-8bit (ORCPT ); Mon, 6 Nov 2017 15:37:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42232 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932796AbdKFUhB (ORCPT ); Mon, 6 Nov 2017 15:37:01 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EBFB082100 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=alex.williamson@redhat.com Date: Mon, 6 Nov 2017 13:36:56 -0700 From: Alex Williamson To: Gerd Hoffmann Cc: "Zhang, Tina" , "Tian, Kevin" , Daniel Vetter , "intel-gfx@lists.freedesktop.org" , "joonas.lahtinen@linux.intel.com" , "linux-kernel@vger.kernel.org" , "zhenyuw@linux.intel.com" , "chris@chris-wilson.co.uk" , "kwankhede@nvidia.com" , "Lv, Zhiyuan" , "daniel@ffwll.ch" , "intel-gvt-dev@lists.freedesktop.org" , "Wang, Zhi A" Subject: Re: [PATCH v16 5/6] vfio: ABI for mdev display dma-buf operation Message-ID: <20171106133656.00fd674c@t450s.home> In-Reply-To: <1509959134.30277.6.camel@redhat.com> References: <1509934758-5003-1-git-send-email-tina.zhang@intel.com> <1509934758-5003-6-git-send-email-tina.zhang@intel.com> <20171105193922.5dc9356a@t450s.home> <237F54289DF84E4997F34151298ABEBC7C62533C@SHSMSX101.ccr.corp.intel.com> <1509959134.30277.6.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 06 Nov 2017 20:37:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 06 Nov 2017 10:05:34 +0100 Gerd Hoffmann wrote: > Hi, > > > > I thought we had agreed to make this behave similar to > > > VFIO_GROUP_GET_DEVICE_FD, the ioctl would take a __u32 dmabuf_id > > > and > > > return the file descriptor as the ioctl return value.  Thanks, > > > > If we follow VFIO_GROUP_GET_DEVICE_FD, we would lose flags > > functionality. > > Zhi and Zhenyu, how do you think about it? > > The ioctl is simple enough that not having flags should not be a > problem I think. > > Also note that dmabuf_id is received using the PLANE_INFO ioctl, so > should the need arise to negotiate something in the future chances are > high that it can be done using the PLANE_INFO ioctl flags. Right, the ioctl is "get fd for thing" so we have control of "thing". I think we had this same discussion on v15. Thanks, Alex