Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp114731pxb; Wed, 29 Sep 2021 22:51:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJauNQHhrxvzMTZM0Ou5i4Z2470ACzfcwkWidxbfWHy6k7X8m/11KYDiyRe7NGhFgoVpzE X-Received: by 2002:a17:902:bc8a:b0:13b:78bc:9e18 with SMTP id bb10-20020a170902bc8a00b0013b78bc9e18mr2389591plb.53.1632981077157; Wed, 29 Sep 2021 22:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632981077; cv=none; d=google.com; s=arc-20160816; b=hWp62kZ4wf/OpY1HaLNoLtSdynTZIS5yGWw8SNUHcOAyfe4N2VM/eXJyvcCqOSMh0G hmVB4CIZuIkf+Tqu1NNt6gsDYhrNJKH1Qgsd0b8Q4klgsbIpSb1WDKBTwpl/Y+Ap9CfQ 5kmirU2xR+9eGHjCSi+h01NlMxi6h4iqInLvtl9W50nHgCWvIhRt2nUsJ4qqORda1rEu KROUqY7mdbAKCIfCuMqC9xaESSmN20yuTf7/NpK7g7PABz8fOu2D9k+7okTXCUM3PGAH b/+fGoxBIhgiCzKQdvxvj86Vc/3CMbwgwM1X/KCg2HztFilvESEdDI9g/mYmQb4d3BRt nEpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TAQDI8Z9rBD2mRpwxd+idYD+jzFdaqVMfwgwgX9tzWM=; b=vbFgswGvHIWqsFDqojsAxazJX4Z7B3+wxJ0MZ0xqDFkp1h8RrdCvbZO7pBA5srZrid einW81M5ii9ZU7A6h8cD8THAbcwljZflI4kw1/tR/ocpc3dLSF6oprS3nGvNsvSj9Bn+ Qv8uP8U2OdP7VfHz74SxSAQnOjjRhzBS0/2jUb+ON+p4pnOTVnNO5EzSWhw1BTNbQxz6 dnnFs4x4u1Dod/IYs1YfEESnvWxEE7hY+fSyptN4pfNsq6WkYf7NFBKIW4KC9wk3Trsf xQSXb+JOQJNnI2ill0ZioZTXmus1FBfzA24Q9Ikc2awXUf2uV6XWN4r+zp9GMuxCUEc0 rkxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si2560974pgi.245.2021.09.29.22.51.04; Wed, 29 Sep 2021 22:51:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348141AbhI3FuK (ORCPT + 99 others); Thu, 30 Sep 2021 01:50:10 -0400 Received: from verein.lst.de ([213.95.11.211]:58257 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348054AbhI3FuJ (ORCPT ); Thu, 30 Sep 2021 01:50:09 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 272C868AFE; Thu, 30 Sep 2021 07:48:22 +0200 (CEST) Date: Thu, 30 Sep 2021 07:48:21 +0200 From: Christoph Hellwig To: Tianyu Lan Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , "linux-arch@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "netdev@vger.kernel.org" , vkuznets , "parri.andrea@gmail.com" , "dave.hansen@intel.com" , Michael Kelley , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Dexuan Cui , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "x86@kernel.org" , "hpa@zytor.com" , "dave.hansen@linux.intel.com" , "luto@kernel.org" , "peterz@infradead.org" , "konrad.wilk@oracle.com" , "boris.ostrovsky@oracle.com" , "jgross@suse.com" , "sstabellini@kernel.org" , "joro@8bytes.org" , "will@kernel.org" , "davem@davemloft.net" , "kuba@kernel.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "gregkh@linuxfoundation.org" , "arnd@arndb.de" , "m.szyprowski@samsung.com" , "robin.murphy@arm.com" , "brijesh.singh@amd.com" , Tianyu Lan , "thomas.lendacky@amd.com" , "pgonda@google.com" , "akpm@linux-foundation.org" , "kirill.shutemov@linux.intel.com" , "rppt@kernel.org" , "sfr@canb.auug.org.au" , "aneesh.kumar@linux.ibm.com" , "saravanand@fb.com" , "krish.sadhukhan@oracle.com" , "xen-devel@lists.xenproject.org" , "tj@kernel.org" , "rientjes@google.com" Subject: Re: [PATCH V5 12/12] net: netvsc: Add Isolation VM support for netvsc driver Message-ID: <20210930054821.GA22332@lst.de> References: <20210914133916.1440931-1-ltykernel@gmail.com> <20210914133916.1440931-13-ltykernel@gmail.com> <43e22b84-7273-4099-42ea-54b06f398650@gmail.com> <20210928053911.GA29208@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 05:23:31PM +0800, Tianyu Lan wrote: >> >> - the bare memremap usage in swiotlb looks strange and I'd >> definitively expect a well documented wrapper. > > OK. Should the wrapper in the DMA code? How about dma_map_decrypted() > introduced in the V4? A mentioned then the name is a pretty bad choice as it touches the dma_map* namespace that it is not related to. I suspect just a little helper in the swiotlb code that explains how it is used might be enogh for now.