Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4168157imm; Tue, 29 May 2018 23:55:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJiiI8q/l1Pirq3kQproPSSnDUA8pxzHM1Zqr+xpkh2LBmOG3/QAcR+2abjIdd7CPBIopL8 X-Received: by 2002:a63:924f:: with SMTP id s15-v6mr1242490pgn.368.1527663319147; Tue, 29 May 2018 23:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527663319; cv=none; d=google.com; s=arc-20160816; b=GXsd02JOqxZ/uGJc1d74HuqYze/4ZcdlwF7YoFyJ71+Mu9SPjlr9miszsGNN+AbYOl vDVOM/Sl0JklSMAGmApVy8bMQDGw6gQkyIC/mq8NMiqUaj9OZ+hK0DTKPSykzOvzDE/K pRG8pvLDbsgdGVsdlZ04ExdsQxrj8mT00iFX3ToCAI4FsKmGjlh3MG+mN0QOneBmHrBj yZAWwrnXMR26vPB+xu6Hlwsch996oEMyAEjUnwy3Ew90t4/NrxLQdyvJCfKWvx5FhU2s 7XEy6UjSvxjoT+9eld7t7sQhogShybPSoiEnF8287IxL9LPVJH2dojf30zvpL4K6uJFi y1yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=/Nn72GhAB3wV6UGyX6i1vjDExwenjEcMR8Xgc2hJKOU=; b=KKdpO7pcOGzt07Ta6y87aLRfgRIGfRNlzv8MnpmjpvMSswJTAIhodfRlvEFp/pGs9o XBQxA2fJeuRML6KGYLNN61nGmHqbo/StUDE/MgnUCjHOdKyLHy5RSFEslnLz9Ll7tZdv UgbDVT5PFsJnd/5+MKJRRaBp06Qo0EF87trOrVqces3GGPaCDUlGr1kOqxQsTjC8+ejJ qZZt6Y3LirKtCwxGDnEEIkfajOz77ntTnO6JZ6CupxYoExTd7UPqw8HwEet/+kOmAbQG 7TPIvD7Bma/s8LK7arX3yT6Y3PBdL3cBl8UVow9I9gywRon8oYRJ4ra3nF8XdhGaU0H2 Wl5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c6/NqgS9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f68-v6si3452914pgc.475.2018.05.29.23.55.05; Tue, 29 May 2018 23:55:19 -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=@gmail.com header.s=20161025 header.b=c6/NqgS9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937224AbeE3GxB (ORCPT + 99 others); Wed, 30 May 2018 02:53:01 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:37393 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935905AbeE3Gw7 (ORCPT ); Wed, 30 May 2018 02:52:59 -0400 Received: by mail-lf0-f65.google.com with SMTP id r2-v6so2538864lff.4; Tue, 29 May 2018 23:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=/Nn72GhAB3wV6UGyX6i1vjDExwenjEcMR8Xgc2hJKOU=; b=c6/NqgS9TyBRnX+C0loV8OVtm7X/yC9vKzXAxaitEKpSa+MF+QBeNeBeEWBgXyrvrL 660PJ3R3TieJrhEhhoslkNG86tyBuknpr75baUHOj/dK3ZxSb7/lcmdSJZ21ab7Rhv+Z TMpsr5T75XxiospOMzQZnhYq+2WNimXmV6zj8t4f3i1yHFnpGl0u2519eTD074PxZFVa wUi+VIVsQd/UKgg27QDyY5tFM4NBNayPS1emA/NWQ58j88EJWI0q2ykRedD5ujZZVuXj nms4VmjUXcmzjfCkTFl44UDcUI1EsweDUhg/v92whRyYsEkQqkEoMFE47MzSJBgkP4Fg EuSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/Nn72GhAB3wV6UGyX6i1vjDExwenjEcMR8Xgc2hJKOU=; b=Li0JyOMvSu57EFnB0bI94jvtrOvNQ+xWglHuOMIafbPCpBXt9OBFpNsCXhUGGCxqrZ KGBDkNZVOkmzi6wsKqH/XrKz98UU49nhwJ18zaqbDFG8yvbG0X3GctlibzkU3ZtNG8d7 CKWASJn3Nw1qzmBppIUaprz0BlR31Mgoce+slZodX8r9jniEXUwdEKLtkJ/A9WVEUk6j ROy/jaFr3pa3ioZb/TMgsfIMbzHnvY4kOBlFsU2umvFFte4zf7HyRA62n3X7k3R5AhQn OLsTUKw33g5h6x90e2dNtU2BR2lnRJjfXRvT2UsmarHtXGHgQEf4IZR+AWNV97synRs1 4kpw== X-Gm-Message-State: ALKqPwfEUULbfbpgH8WZSa11evrMm8E918VYeT2WmSZBQVtWqpSEjBNn nG6lkAzwL6EwfJB2UZOiku0= X-Received: by 2002:a19:9a10:: with SMTP id c16-v6mr920504lfe.60.1527663177459; Tue, 29 May 2018 23:52:57 -0700 (PDT) Received: from [10.17.182.9] (ll-55.209.223.85.sovam.net.ua. [85.223.209.55]) by smtp.gmail.com with ESMTPSA id y23-v6sm6923252ljh.88.2018.05.29.23.52.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 23:52:56 -0700 (PDT) Subject: Re: [PATCH 5/8] xen/gntdev: Add initial support for dma-buf UAPI To: Boris Ostrovsky , 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> <20180525153331.31188-6-andr2000@gmail.com> <232459a8-695f-56bf-e39b-693a2d2b27e3@oracle.com> From: Oleksandr Andrushchenko Message-ID: <25a0adae-6488-1d24-0c0a-514b24dcb1df@gmail.com> Date: Wed, 30 May 2018 09:52:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <232459a8-695f-56bf-e39b-693a2d2b27e3@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/30/2018 01:34 AM, Boris Ostrovsky wrote: > On 05/25/2018 11:33 AM, Oleksandr Andrushchenko wrote: > >> >> +/* >> + * Create a dma-buf [1] from grant references @refs of count @count provided >> + * by the foreign domain @domid with flags @flags. >> + * >> + * By default dma-buf is backed by system memory pages, but by providing >> + * one of the GNTDEV_DMA_FLAG_XXX flags it can also be created as >> + * a DMA write-combine or coherent buffer, e.g. allocated with dma_alloc_wc/ >> + * dma_alloc_coherent. >> + * >> + * Returns 0 if dma-buf was successfully created and the corresponding >> + * dma-buf's file descriptor is returned in @fd. >> + * >> + * [1] https://elixir.bootlin.com/linux/latest/source/Documentation/driver-api/dma-buf.rst > > Documentation/driver-api/dma-buf.rst. > Indeed ;) > -boris Thank you, Oleksandr