Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4167467imm; Tue, 29 May 2018 23:54:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLSzgecSL8AJrWUl0CzHIyDFFENx6ByERwkpoQ5MF5EL3rsq4R0PU4ZW1XD/DM4R/1AjzzM X-Received: by 2002:a62:9696:: with SMTP id s22-v6mr1568899pfk.191.1527663251226; Tue, 29 May 2018 23:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527663251; cv=none; d=google.com; s=arc-20160816; b=vqPkK27BrDMDrE8uE66tK8JVoIspuESmFiljkbypxWTLm6Zz2o0wbL7auQiZw5XEsJ r28rGFUWcYGKCJ9JwP8+ucoSxo49ty74jhn4q0lxiBLqXPHOm7Wu2mQO2bmIDEtcYfKV pkG3MwmViBf4FniorsPWu0PnpN+PeJ2cR1wnuCYderHInGKhb9TH+oqyR2ui+XpgJC2K XfNuvgZZs9HN56b0mkwbYjHsn5FOn4+HOKQEzqYQ8wAkJtftl/ynBM60KAxmoPyJQ065 BEXGE6qijK1Dh6uxXd1wQVOy8AsahASdVm1fDR/5NFLVwAsaQK+Z/LCeHKuJ0w3URXnV ct/Q== 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=zfXsad29Vz4WI5pT1KW56IHdJxtPo4CWJ+Je8JsrjMg=; b=eNRYp1f2u1wl8qPjXS9JmglzV4oImLI4ouOvTLKUOu1kspAZGi3wLE5s3T++uz/R42 BQrNZAyf7+rWhEe2jUFrHZ83O7Fru1ms6PmvvZQvX81/S6XqOcS+kx3m+g0AA+5EVS3n cubZ1/F2X46GpFzJTLRBA1Uui6ShYyKyqwMjWiNT0wsCZoc6jiEDSXlAXz/lZentmYyL 0oDVBiC3UYsx9dE7saqgRwNHX7bVuXUmadquE/mu1ErHMwR/0Ji52szC7uipolLJopMk TmSMmAu9ZxjaIBIpeypuVvQz0ED0m9tVZV79c1wyliaEPwV1E6RTre5CG5fs/C2ANmrO Cjiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BqdnNCsK; 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 z8-v6si34284391plk.539.2018.05.29.23.53.57; Tue, 29 May 2018 23:54:11 -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=BqdnNCsK; 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 S937158AbeE3GwN (ORCPT + 99 others); Wed, 30 May 2018 02:52:13 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:37291 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935905AbeE3GwK (ORCPT ); Wed, 30 May 2018 02:52:10 -0400 Received: by mail-lf0-f66.google.com with SMTP id r2-v6so2535760lff.4; Tue, 29 May 2018 23:52:10 -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=zfXsad29Vz4WI5pT1KW56IHdJxtPo4CWJ+Je8JsrjMg=; b=BqdnNCsK2POXVeDxRVnW+Q3aZ5WMHmULc4DQ2jN3T44kSOb94IL6nSr5qoeMbpybTf 956JL75RLlK5rEh96gEtt2ZXG8otFCMcaAoK/tV/6pHFoSO3F1jYDV7e3BQQdjD7oFX2 BdNuav7384X9lAlGB2FQlsfy3iQKB5r33INrmJjz0qxfGS257AAo7eZk7JKSVmJhk2S2 5NvFCblMaUWVbSFpNTwi18r7tvSw6VULdL/9dkVsZc5hZWXKIgOF2bUmHHC6MKCEywMi wwwr5GkekwvAEsciLlzdOOdWBEduYwIgqCCMh/Hg02jP7CGWhfHquSsCRH+cs2LRfaId r4Rg== 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=zfXsad29Vz4WI5pT1KW56IHdJxtPo4CWJ+Je8JsrjMg=; b=Vrf+f6kzThs4BTBcBuc9/b8lvrd9SRNgFpc9FGHcepDbVAcH8TEMLB5JC5V6TEe5EN FjfriIC+s2jyeFIf1tU17SKLAlcqLAtNEIH1zo85OMKk9+jYKF+1VgVsZ0V6Og1wKXNi Siv0xxBk8uooAbn8zsD/UUUVY/lPcleSjtfoGdaD0tqrZL9J7HlYjUEnVnNkPd8YIKfn VGUyRQj40kQVa7bLcJFWdeaXLCxKpAZ0HozRbu5XROcGp3h20jP1UCgjSF8DeBv4Fkwz fWo5WVk8Geypx4P+GF/P4VoMSBn2LVhQA3cKVnJPvj885nx+Y7Xcvb/hHam8bD9h/h7v VPlg== X-Gm-Message-State: ALKqPwcNEdEwOxhjZyymdQr1ObK4Ug8DsjKQ4Nci863ijNo1txyLPm9n s140zeK1N42RagT0ZRLj6Rk= X-Received: by 2002:a19:ce87:: with SMTP id e129-v6mr897270lfg.57.1527663129176; Tue, 29 May 2018 23:52:09 -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 h2-v6sm6899291ljk.60.2018.05.29.23.52.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 23:52:08 -0700 (PDT) Subject: Re: [PATCH 5/8] xen/gntdev: Add initial support for dma-buf UAPI To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, jgross@suse.com, boris.ostrovsky@oracle.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> From: Oleksandr Andrushchenko Message-ID: Date: Wed, 30 May 2018 09:52:07 +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: <20180525153331.31188-6-andr2000@gmail.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/25/2018 06:33 PM, Oleksandr Andrushchenko wrote: > diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig > index 3431fe210624..eaf63a2c7ae6 100644 > --- a/drivers/xen/Kconfig > +++ b/drivers/xen/Kconfig > @@ -152,6 +152,16 @@ config XEN_GNTDEV > help > Allows userspace processes to use grants. > > +config XEN_GNTDEV_DMABUF > + bool "Add support for dma-buf grant access device driver extension" > + depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC This must be "depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC && *DMA_SHARED_BUFFER*" > + help > + Allows userspace processes and kernel modules to use Xen backed > + dma-buf implementation. With this extension grant references to > + the pages of an imported dma-buf can be exported for other domain > + use and grant references coming from a foreign domain can be > + converted into a local dma-buf for local export. > + >