Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp815195pxj; Wed, 16 Jun 2021 14:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySPmHwTTnPkeNGZNtoEzjFZhqOF2im3RSP3ifMvXG1aUnqX8hiCiz35gwXXxNW1vn7yCry X-Received: by 2002:a5e:980e:: with SMTP id s14mr1051564ioj.133.1623878523285; Wed, 16 Jun 2021 14:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623878523; cv=none; d=google.com; s=arc-20160816; b=bvRZrsjkHJ7/cW28SP434VUWFAetQT2zwZmC7n5gLWnzlLJ3KZrwjH0ZrRA+/cOED2 JTm9N+mvdpatjQXKRxbb05anb6yoro8fueLn68DlO1kc0GPzAymHshabEKXm1XEOivKh dOJfYV0NkXYVKKZ95R8vJRygIX8vWkS77aAIt3dzaATvb8lCMjpcM7Lnvy/aYK/V2Dhp 708Vtwq8BdrtFTVx3QRQz99mZ2Dw8fc3RGtu3LcjstVN0WxYDyfREQSxnpT6N2Hk7kHl 6qDUN1b0yXMHelFFl4287w5VxMkSVBrlztlAPJO29j48+oPzEohmlUd32poQ+fHFugIQ ijLA== 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=Zor906F6b4K42ZUjvirq1cLdq9L4NYvIUgmp9UButA0=; b=WKgQ/C9mCpEDgePghWBkl+UZOwftCIF42W04ZJxguvMv9QiBUBbTwH6dofFFbcuJ83 DxfvKmOh262JrOCZt0671SZnV3+Y1CIkWrMEiUNKtepZvCl9Nd+XNTr2RD2q6eSYymMn 2eljsYyAjMqFsS7ismzOSvNJ9/tnmcDsVKeQ+FWeeEXzSjJ7rd9v+lX3/ophTWdUnAhC IMvw9I+x0/bmbUFPuuNg5oabFJRO4+03rJTyXR1AIWz404GJHp9se4BVZS5+Yb3Ymsc6 MeTJqXCDtFDm1rOCshdoDOpubpVSUlPF7YwLubNoLnvwj1z1JRCwfK4/nQa9Lig4ePpp misw== 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 w19si3157150iod.20.2021.06.16.14.21.50; Wed, 16 Jun 2021 14:22:03 -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 S235086AbhFPPi2 (ORCPT + 99 others); Wed, 16 Jun 2021 11:38:28 -0400 Received: from verein.lst.de ([213.95.11.211]:54931 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234928AbhFPPha (ORCPT ); Wed, 16 Jun 2021 11:37:30 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 1777768B05; Wed, 16 Jun 2021 17:35:20 +0200 (CEST) Date: Wed, 16 Jun 2021 17:35:19 +0200 From: Christoph Hellwig To: Boris Ostrovsky Cc: Christoph Hellwig , Roman Skakun , Konrad Rzeszutek Wilk , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Oleksandr Tyshchenko , Oleksandr Andrushchenko , Volodymyr Babchuk , Roman Skakun , Andrii Anisov Subject: Re: [PATCH 2/2] swiotlb-xen: override common mmap and get_sgtable dma ops Message-ID: <20210616153519.GA6476@lst.de> References: <855a58e2-1e03-4763-cb56-81367b73762c@oracle.com> <20210616114205.38902-1-roman_skakun@epam.com> <20210616114205.38902-2-roman_skakun@epam.com> <2834cdc0-534c-4f07-1901-e468a7713c1f@oracle.com> <20210616142148.GA764@lst.de> <83353b34-2abb-9dfc-bed6-21d500abf49f@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83353b34-2abb-9dfc-bed6-21d500abf49f@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 11:33:50AM -0400, Boris Ostrovsky wrote: > Isn't the expectation of virt_to_page() that it only works on non-vmalloc'd addresses? (This is not a rhetorical question, I actually don't know). Yes. Thus is why I'd suggest to just do the vmalloc_to_page or virt_to_page dance in ops_helpers.c and just continue using that.