Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4152160pxv; Mon, 28 Jun 2021 23:44:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP/e5cwpNLIOYdRVjjPkXM9gQ85ryv/ai4OfBdCx3/kQ5R3o7JCpq5/oOCxRimFToXT6XW X-Received: by 2002:a05:6402:1716:: with SMTP id y22mr38573046edu.237.1624949068332; Mon, 28 Jun 2021 23:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624949068; cv=none; d=google.com; s=arc-20160816; b=INtABs6B5LKEMaehwNObtD7CgmB5Ta4qA/N0HWGGSPAlY9QnwB1aHWPVt7R8uf6Ghx MWlQ+Pkmj6l0mJQIBh4Cdf5eN5DFTMGcv3rTZ3ftIKWzV2ZXvlT2QFbPkkfXXHYPV3nE xst+MnRRBkp1r9He8C58gob5w32viae7/aC2DtCJokOWAvgaABwHoV0Dz3UlTsk85fnh tK3rfeoQp0SWybFjsnuCWTslpxU4pE0VU8MOERw55p9UAJ2ldCF8749Fp8tMJ/HbCyxm ryjLV4+wWL5v+2kcuU2cC8eQBgBM/yYnaD3QqRg+Qk7f0OOwTPW46FahSNxWANQLUzJM sTPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=llkKHmBkfnr2e7nGu5wo9NWF1Rvx5VVNTXNZeIaOEY8=; b=wKdDLEpPWtwXjYdsDbw/7mrdnXESipfHdyTlv3N2dPCTNb1N+fq5Fh9NSg+eB2LtK8 7u43GIM90sSZNsbF7Ouf9wCZdKYqomYA58W49L0ihuyt/cpXnzh5d6x2hEzeIuD4OJya s+iqT3RPw7eUHY7pjJoLsgLi0umztwOqRGJCj350on8zRHIO1r8Br7jsuA6PBn5Vu1HH 46tUK+IEt7fw29o6YN0oJG9p0NbbNSKzTlSi9yxLZgoTDCtQtNKSeOvP+aNLGlMh6W3/ nDd+xszRhLRuYyqaXF2UFXSub1Y3qPcyiqBuJSmEuUyjJxSU+rFnDlar1H7cB3KDqv3M HFsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=b6IxjHxg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ig2si8470599ejc.475.2021.06.28.23.43.59; Mon, 28 Jun 2021 23:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=b6IxjHxg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232174AbhF2Gnl (ORCPT + 99 others); Tue, 29 Jun 2021 02:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231958AbhF2Gnj (ORCPT ); Tue, 29 Jun 2021 02:43:39 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65390C061767 for ; Mon, 28 Jun 2021 23:41:11 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id i5so29786642eds.1 for ; Mon, 28 Jun 2021 23:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=llkKHmBkfnr2e7nGu5wo9NWF1Rvx5VVNTXNZeIaOEY8=; b=b6IxjHxgrsOeV79Ht0Ax4/VA7XYqaQCz8mEI89nlODOpkbbNQKkT86lVUMKt1PlsZi aO9kArwDvjiDefLm8Gqo0xUt1Mk7mf97PWF41AYIIn47zWADydgm2jEpt5HbuvJNgu5D ntPRGt8AK87ZDLLlBie2K5g/5+KlMcWQeGjcg4WsoHO2ksy66nVpAOJnvc90t5QRYxsZ lmYM79ne39YAIfMIugI5AFk+AfwA9H9Bbs5SlIVioXOv0ITHb/z3Mum0jibvHXkilmpY vBesh85ghF0T5N8Mk3dWMoelFiG83Ubtv9E3WAB1/u1Mox5/MvGtN3SeVQ5/0Ut6/dR8 OyRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=llkKHmBkfnr2e7nGu5wo9NWF1Rvx5VVNTXNZeIaOEY8=; b=VZwLlI/uFheDLlpaYkGBq2qC/6XHYf5GwQf1YEpoLwASPuLaPHIbKma5vuMB5j1fzK Qogn0MAjWkRPhAkbmwe219JY/6dWoSkiHDGo/HOjqu8CNINkfx956zFqPsqVUjleoDOJ XUTXQ5kWZnwndHkoD7t5UoM2p0FNGQk6/aN1NJphNXLtbfjptoaseTu+58VebaOHb3Zl RavetJceqPspK2CjbMhu1ZIKab/Iso8R66NzU3MEk51iF23M4rZKiDy8TUJ1Xi4w0AqI mQpqsdjjx+FGXyG8/ilFEbBm82bQmqG8deztGyBmbY6qVDvTv3c8w7JhikgTpcABNcBl o5wg== X-Gm-Message-State: AOAM530wJ/sWkX+BnPykvz9crkQCZ2+WQCgK0ufrSSYUPcDxdyH9/j4l Da2PcMb2wuu0mb/srIAVg7cmt3yVtYz9vvHWzPL+ X-Received: by 2002:a50:ff01:: with SMTP id a1mr37794534edu.253.1624948869940; Mon, 28 Jun 2021 23:41:09 -0700 (PDT) MIME-Version: 1.0 References: <20210615141331.407-1-xieyongji@bytedance.com> <20210628103309.GA205554@storage2.sh.intel.com> In-Reply-To: From: Yongji Xie Date: Tue, 29 Jun 2021 14:40:59 +0800 Message-ID: Subject: Re: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace To: Jason Wang Cc: Yongji Xie , Liu Xiaodong , "Michael S. Tsirkin" , Stefan Hajnoczi , Stefano Garzarella , Parav Pandit , Christoph Hellwig , Christian Brauner , Randy Dunlap , Matthew Wilcox , Al Viro , Jens Axboe , bcrl@kvack.org, Jonathan Corbet , =?UTF-8?Q?Mika_Penttil=C3=A4?= , Dan Carpenter , joro@8bytes.org, Greg KH , kvm , netdev@vger.kernel.org, linux-kernel , virtualization , iommu@lists.linux-foundation.org, songmuchun@bytedance.com, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 29, 2021 at 12:13 PM Jason Wang wrote: > > > =E5=9C=A8 2021/6/28 =E4=B8=8B=E5=8D=886:32, Yongji Xie =E5=86=99=E9=81=93= : > >> The large barrier is bounce-buffer mapping: SPDK requires hugepages > >> for NVMe over PCIe and RDMA, so take some preallcoated hugepages to > >> map as bounce buffer is necessary. Or it's hard to avoid an extra > >> memcpy from bounce-buffer to hugepage. > >> If you can add an option to map hugepages as bounce-buffer, > >> then SPDK could also be a potential user of vduse. > >> > > I think we can support registering user space memory for bounce-buffer > > use like XDP does. But this needs to pin the pages, so I didn't > > consider it in this initial version. > > > > Note that userspace should be unaware of the existence of the bounce buff= er. > If so, it might be hard to use umem. Because we can't use umem for coherent mapping which needs physical address contiguous space. Thanks, Yongji