Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp103132imm; Wed, 30 May 2018 18:49:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJm8g9L3GxeYMsaMzmQpwhxJkqTJXelhLMYVr0QJkQa6CcuHTTksYzEtNEozYtLrqSx4lC+ X-Received: by 2002:a17:902:aa4b:: with SMTP id c11-v6mr5062094plr.17.1527731381834; Wed, 30 May 2018 18:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527731381; cv=none; d=google.com; s=arc-20160816; b=Jyz73vCBauck0LLcjRdBB03gTwn0IN44FHyB9qkvqY5SBJK373lUBbn9zNpGwQ87Zf GioDdUXuibu31Po04scE0MQUSTSmmKw3AhJTEtFglbkT0SyU0iMFwDZFWiZHwCQPczlL TrrxnPWNvlRYxwtfoypewQ+S0w55eHPADHJI5xfhzt8i4fnrQOMCYOrXxSo4EhMDPigt ll9bH9CcfThdTj+9zVYaKWWs9SP9pptXFHKLTEGcCBO1zEZcXSGo3qeIKFoISAGxY0d6 o2yRYqh+lTObr0Z0QdjSAVMHgSwvAdZqWeknHsgw1kIsnAp4A6PEV+1splQVc5bKwU44 hMdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=QAMALO8sgzpZOUtt+L+ERvryNjGVbKMEWW4to9SGXns=; b=EFi8C6QlZqC/1IECD4fXxJ/HFhq8ovbnO617rm3oTFgRbdIIrL8mqInLP0R1vYQWbW xeAORyeugUZWTTLEClT0YuJ1MCsaGMIfIgv6HDfIWFI6AceCH88uWMwkn79brRqvRzRm usVgULjmhx9aXq7QRo8YVSE+F2h8Qg0ckInD7QKwnJWZNk6rO3aUWrD9r7tjKJBhcgHZ T9sHf1y9X2PDDvbAEEuYt1V1XOVjMRVAtTCDs4LjDUNqBFMPsWQ02zFEn8SCvQHA9PpJ BSpzXMQ8py+dqHDH1onAy1ZQwcjHQQdE08KzPRchYNQWiJPijO7R1Ucg15kJ/RCHGD2R MSyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=XYKwFpiJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si25125926plp.178.2018.05.30.18.49.26; Wed, 30 May 2018 18:49:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=XYKwFpiJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932688AbeEaBqv (ORCPT + 99 others); Wed, 30 May 2018 21:46:51 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:42736 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932593AbeEaBqs (ORCPT ); Wed, 30 May 2018 21:46:48 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4V1ex4k096805; Thu, 31 May 2018 01:46:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=QAMALO8sgzpZOUtt+L+ERvryNjGVbKMEWW4to9SGXns=; b=XYKwFpiJnNI6hb77T8lBavLdWAbC5to8CUkowCy4NSI3adLsXTIXsyGfzidBah8Gqy3v 2UD5P4fq70P/xhjuFrR1pngwHMYnidbG0s7INy6olQ3jyZkPhbauRgqG2Jcxt0YgJni8 /BwLKIqXWzEfCGr3JB46Vc9YvApeJcwcjDhIxlaW4DzhXMKT0AHtGI5yDq2ICYMI3gc5 mMiQr4Z1SYZ/XbbzLmXHl3ntPcY0zOG5WwQKR0quFcLp2vAFFMv869idRoUk7MyeMkGy g6utjoknyr/qRbntDztxxcMekvxTta9yO9RRkmIHzFgKXynkX9z5DVIVX/2AAKGc4zeZ 2w== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2j9ev8cugj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 May 2018 01:46:35 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4V1kWnd023835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 May 2018 01:46:33 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4V1kVqY005555; Thu, 31 May 2018 01:46:32 GMT Received: from [10.154.160.97] (/10.154.160.97) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 30 May 2018 18:46:31 -0700 Subject: Re: [PATCH 0/8] xen: dma-buf support for grant device To: Oleksandr Andrushchenko , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, jgross@suse.com, konrad.wilk@oracle.com Cc: daniel.vetter@intel.com, dongwon.kim@intel.com, matthew.d.roper@intel.com, Oleksandr Andrushchenko References: <20180525153331.31188-1-andr2000@gmail.com> From: Boris Ostrovsky Message-ID: <9687b6e5-808e-0c63-34c3-90e6fcbdfb2e@oracle.com> Date: Wed, 30 May 2018 21:46:28 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180525153331.31188-1-andr2000@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8909 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1805310016 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/25/2018 11:33 AM, Oleksandr Andrushchenko wrote: > > Oleksandr Andrushchenko (8): > xen/grant-table: Make set/clear page private code shared > xen/balloon: Move common memory reservation routines to a module > xen/grant-table: Allow allocating buffers suitable for DMA > xen/gntdev: Allow mappings for DMA buffers > xen/gntdev: Add initial support for dma-buf UAPI > xen/gntdev: Implement dma-buf export functionality > xen/gntdev: Implement dma-buf import functionality > xen/gntdev: Expose gntdev's dma-buf API for in-kernel use > > drivers/xen/Kconfig | 23 + > drivers/xen/Makefile | 1 + > drivers/xen/balloon.c | 71 +-- > drivers/xen/gntdev.c | 1025 ++++++++++++++++++++++++++++++++- I think this calls for gntdev_dma.c. I only had a quick look over gntdev changes but they very much are concentrated in dma-specific routines. You essentially only share file_operations entry points with original gntdev code, right? -boris > drivers/xen/grant-table.c | 176 +++++- > drivers/xen/mem-reservation.c | 134 +++++ > include/uapi/xen/gntdev.h | 106 ++++ > include/xen/grant_dev.h | 37 ++ > include/xen/grant_table.h | 28 + > include/xen/mem_reservation.h | 29 + > 10 files changed, 1527 insertions(+), 103 deletions(-) > create mode 100644 drivers/xen/mem-reservation.c > create mode 100644 include/xen/grant_dev.h > create mode 100644 include/xen/mem_reservation.h >