Received: by 10.213.65.68 with SMTP id h4csp540146imn; Fri, 6 Apr 2018 04:58:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx485mQiZQz9W0CnhU1gWrHMwMGxuxspEl45x48Wsub3+DtOhYLRBqF1dk4aZeCdslGJGmeYK X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr26800004plb.224.1523015934198; Fri, 06 Apr 2018 04:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523015934; cv=none; d=google.com; s=arc-20160816; b=Ko9dECJMbKHTEbPl5TpgVSq9HCv7m7ENGVVm8WsKUsivwKaygK7dj78fcU6xJjVSrp KenqBsIYrCZbF3WhAG6ew9gNhZIbdHrFYLyWZbdjx2hgJ99jIhf7nkCQ8GuQZI2h+fFU tuvAqgx3edFTTk/xuDFambwNLU+WuDJfMD2YK3NPvjxvPPJd29k9McxyfXU6MJLdL4e0 hW5mbxSMdAlj9XpLDHKqY0ngmaCPNa+KbYob8pLrMREr90OMPaIRqDMXpb0PUgeOWXFY tlJkslVQI6JbPo36jvHnIMkpJaCeJ4Vp+1VJlvtvRDYPlgUx6cxeKp4JfTql2uG6uGTs HH9Q== 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:cc :to:from:date:arc-authentication-results; bh=5/xOlx3L3bDI16gcTeKDuvC7s5gx5/wL5S1/LfGssIY=; b=mrkBRSyXsorDcUuUBjoBxpe1Lv830GsjedOGceC/5oSFqWIHjtcLBt9HwiWhx0hv2F +71vJV+Act19hHCXZ5uuQuGwy6FYNH+7a8cyxfNYEZ9zx+99/3v+/6ueoip/a1SKAOTb yJd9nBhnxK/K52UNX5gKB7S4xuXBBtwnuqeDvJTIXcCfHSZ5bYLwCmVPPh1MaKMFyI39 j7XeSC9bnh6HrXFxhif1/ZLsBtAtTSUgAvWcC7gcWyAt4B3AO/+JemJdW7Z2uVvShpQ0 8/mI/QCHXqT4lD3HR75RBTexzWnlhk+YAGPwhAJcAMfQL6O4BE+Oh8giHAFMAIgase7f orSw== 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 61-v6si8332864plz.630.2018.04.06.04.58.40; Fri, 06 Apr 2018 04:58:54 -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 S1752207AbeDFL5i (ORCPT + 99 others); Fri, 6 Apr 2018 07:57:38 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40634 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751494AbeDFL5h (ORCPT ); Fri, 6 Apr 2018 07:57:37 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 706DE40201A1; Fri, 6 Apr 2018 11:57:36 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-117.ams2.redhat.com [10.36.116.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 17AF52023227; Fri, 6 Apr 2018 11:57:30 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 5B24C9C400; Fri, 6 Apr 2018 13:57:30 +0200 (CEST) Date: Fri, 6 Apr 2018 13:57:30 +0200 From: Gerd Hoffmann To: Oleksandr Andrushchenko Cc: Oleksandr Andrushchenko , Dongwon Kim , Tomeu Vizoso , David Airlie , open list , dri-devel , qemu-devel@nongnu.org, "moderated list:DMA BUFFER SHARING FRAMEWORK" , "open list:DMA BUFFER SHARING FRAMEWORK" Subject: Re: [RfC PATCH] Add udmabuf misc device Message-ID: <20180406115730.jtwcbz5okrphlxli@sirius.home.kraxel.org> References: <20180313154826.20436-1-kraxel@redhat.com> <20180313161035.GL4788@phenom.ffwll.local> <20180314080301.366zycak3whqvvqx@sirius.home.kraxel.org> <20180406001117.GD31612@mdroper-desk.amr.corp.intel.com> <2411d2c1-33c0-2ba5-67ea-3bb9af5d5ec9@epam.com> <20180406090747.gwiegu22z4noj23i@sirius.home.kraxel.org> <9a085854-3758-1500-9971-806c611cb54f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9a085854-3758-1500-9971-806c611cb54f@gmail.com> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 06 Apr 2018 11:57:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 06 Apr 2018 11:57:36 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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, > > I fail to see any common ground for xen-zcopy and udmabuf ... > Does the above mean you can assume that xen-zcopy and udmabuf > can co-exist as two different solutions? Well, udmabuf route isn't fully clear yet, but yes. See also gvt (intel vgpu), where the hypervisor interface is abstracted away into a separate kernel modules even though most of the actual vgpu emulation code is common. > And what about hyper-dmabuf? No idea, didn't look at it in detail. Looks pretty complex from a distant view. Maybe because it tries to build a communication framework using dma-bufs instead of a simple dma-buf passing mechanism. Like xen-zcopy it seems to depend on the idea that the hypervisor manages all memory it is easy for guests to share pages with the help of the hypervisor. Which simply isn't the case on kvm. hyper-dmabuf and xen-zcopy could maybe share code, or hyper-dmabuf build on top of xen-zcopy. cheers, Gerd