Received: by 10.213.65.68 with SMTP id h4csp3974268imn; Tue, 10 Apr 2018 07:25:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx48xdiCZdm2QiYN+bYVjrT+yM0Zg82AZ6sJollHKLWlGbtAU6uGT3qMeJ0nDQ9YzVsjiVAK4 X-Received: by 10.99.191.12 with SMTP id v12mr491567pgf.54.1523370338870; Tue, 10 Apr 2018 07:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523370338; cv=none; d=google.com; s=arc-20160816; b=xbveVWVNTuZHCFAp27pfnZ/rmAzUI/Y6T7IvEy9PpJz8i0haLOIqysHQMl2HfDsZnT EKkfPtiWEgMswe9aIvQTld+lLQw4RjEoTEoSDjWexFRDB5zwAlZ9yOvEtnC4Rt+kJjOO hf+LaI8zND569cB92EiUHl3XVoQqO7wuHNkpQR92ykvFa4NEfB6ZWlwnYYCr5Rc50GkT 55EPikh2QMx9OvwFlDShZHIWMB4LlB6intzl94DhwLc/ONEcD0ZFdZUkRcnS+ZGLOg6V a00BgdsECgSyBvpABGtgh1Dd6DHLDmV5TmaiGLUu2NZ4DDuvdS2u4HLKQaQcxP6uvHBE hg6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:arc-authentication-results; bh=Hgdf1wxrsfg2jOlSGMD/2gbKdqxsJ2vYcSFNXul+u6Q=; b=zNt8IYxkV79zsQwBaeWPsORXgWWIqHDN7XpqifPu5aqAxcwOJsHKi3iAbzXFXBAZ7r bxeQAPc05zcgBybwiceNOEEEFNt7CGcrQ/Vu+ddvpKaYeLX53MslLprFBHsM+myFa0qp 9k0mQI3Wau2jjDdDmckTnLO3CldNTroMgR46H0/q74YgPAOAMzImzuM51SyzdwX2UsTN 0b1CVQPPJ8Y9j4a+jQWZLaLybqbAmr9dwayWMb+vO1JGl0KNoYzUAAayUHX2V1RvQgYN TfohFoWDq9zJbtReBn6HQsIyvQ8UtJ1mVW6lVE860qx3VzkvuExWj/2Bj+ZlBirhUQlp E12g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si1936102pgn.372.2018.04.10.07.25.02; Tue, 10 Apr 2018 07:25:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753633AbeDJOWT (ORCPT + 99 others); Tue, 10 Apr 2018 10:22:19 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51540 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752925AbeDJOWS (ORCPT ); Tue, 10 Apr 2018 10:22:18 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A786D818B126; Tue, 10 Apr 2018 14:22:17 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-121.ams2.redhat.com [10.36.116.121]) by smtp.corp.redhat.com (Postfix) with ESMTP id 352DA215CDC6; Tue, 10 Apr 2018 14:22:13 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7E5159C3E4; Tue, 10 Apr 2018 16:22:12 +0200 (CEST) Date: Tue, 10 Apr 2018 16:22:12 +0200 From: Gerd Hoffmann To: Daniel Stone , Tomeu Vizoso , David Airlie , qemu-devel@nongnu.org, dri-devel , open list , "moderated list:DMA BUFFER SHARING FRAMEWORK" , "open list:DMA BUFFER SHARING FRAMEWORK" Subject: Re: [RfC PATCH] Add udmabuf misc device Message-ID: <20180410142212.f3mudidizexxvnys@sirius.home.kraxel.org> References: <20180313154826.20436-1-kraxel@redhat.com> <20180313161035.GL4788@phenom.ffwll.local> <20180314080301.366zycak3whqvvqx@sirius.home.kraxel.org> <20180406105422.6tewkkciwerud3tm@sirius.home.kraxel.org> <20180409080051.GD31310@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180409080051.GD31310@phenom.ffwll.local> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 10 Apr 2018 14:22:17 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 10 Apr 2018 14:22:17 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'kraxel@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Generally we try to cache mappings as much as possible. And wrt finding a > slot: Create a sufficiently sized BAR on the virgl device, just for that? Well. virtio has no concept of "bars" ... The most common virtio transport layer happens to be pci, which actually has bars. But we also have virtio-mmio (largely unused since arm got pci) and virtio-ccw (used on s390x). In any case it would be a layering violation. Figured meanwhile qemu got memfd support recently, i.e. it can be configured to back guest memory with memfd. Which makes the memfd route quite attractive. Guess I try switch udmabuf to require memfd storage as proof-of-concept. cheers, Gerd