Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3433252pxx; Mon, 2 Nov 2020 08:45:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuOJLY7Q658rxOVRnARO3YeGf9tnIUHmG11zNvKkcmd03pLadI/1r0BHdRzF/V4YFDB/VB X-Received: by 2002:a17:906:578b:: with SMTP id k11mr7137731ejq.330.1604335558361; Mon, 02 Nov 2020 08:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604335558; cv=none; d=google.com; s=arc-20160816; b=seRfRTVm3SqYpyHz9LBdodNOzzDE5yKp7+nujbuQ4vnsPke63wJ+9BDm4nibofzYsD uwdQRKXea5zlDzwBRpitRQvMUFnbKTu4ZQFIAlqqmeJeiQuD9/9oLxrnDsE8Be969QNu Kn8yPn6O3DMJV/F/k82gHqtCN5feK8lJ8bHfQyi9dteBbNxCWGiX1je3DkFVhDj9Igqw PlOEmBpiWUgO+G0Op8OimwFCVsKl11dePUwdY25wyf6ve2+/zky+T4JO0vP32cDrAgOe lCdBcwdgFofL7neTEH7cNKIZm6O5tgHhrV2XWZi8AWhQYJA0aEov94MULXggvoE2oyZH fW+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ytzVAE2XCkwajxNhr8bJkGONDthc4ed0WgNEJDU139o=; b=no4QvRhJRuxLLQQUD/1ef3gbTA7TrVfwGf/rqz2qA9aZSYl+EKVWSlq87nbmr36CX+ 3ZnseTMX/enPlCup3LJGnNmOO5nkbAZMw8WmBhG/JVNI2AEEHFVq9Gia5myHZkmjRYRp NsfvvptpFL42s3IbiC6J+bwIAZk8TeOHl02tsNRcz6GFATZ/OH9c+wKng6ucXe+Usyns yXrWKTLyezbT37ncRzj2FZguHEXoYXNkelDFtLSPzRP1KTeyYN2RQvDE+OsFolQ8dtHZ mxi2dQgzRMJSVFqsDrmWBwCXwI6ZnXly1dZHj52xerBCGnmwrH2MAXMsqlyc/JH+ZLhp Dfig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nE3J0Pfg; 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 h9si10769578edq.358.2020.11.02.08.45.35; Mon, 02 Nov 2020 08:45:58 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=nE3J0Pfg; 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 S1727286AbgKBQlk (ORCPT + 99 others); Mon, 2 Nov 2020 11:41:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbgKBQlk (ORCPT ); Mon, 2 Nov 2020 11:41:40 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31786C0617A6; Mon, 2 Nov 2020 08:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ytzVAE2XCkwajxNhr8bJkGONDthc4ed0WgNEJDU139o=; b=nE3J0Pfg3W6SPnONobv6XQp1hy owdsSlNiW+Y+bXs25cf+31F3D+mxsgHuDIuqdWfnAnRlHJ1s5R+ctP8rcgh+DxSSBBpSXd6axdU4J sRMEd3Y+YpSCakvhT0EkTeN6kVU5UD1aRFi6OCuHy5CgoyGRpl+5R238VwjWhH7cwoyPEK4yiZ1X6 Cgs3zHL/wjscvr7GJ1R0kxcjsQaBy+BbvD8cAQG1QY+FZNbFHH3KZDCtM7wOsPa/epJ2/S6Z4tq1E eqqc5m7o1oaEZFRUN2OlMu229aZwM0UmKcHYyLco2iOqHMFfV7rvlyxhX+6qaKX5md8tUWMzty3Ex sDCyYxGQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZctf-0006jm-CW; Mon, 02 Nov 2020 16:41:31 +0000 Date: Mon, 2 Nov 2020 16:41:31 +0000 From: Christoph Hellwig To: Jason Gunthorpe Cc: Daniel Vetter , Christoph Hellwig , DRI Development , LKML , KVM list , Linux MM , Linux ARM , linux-samsung-soc , "open list:DMA BUFFER SHARING FRAMEWORK" , Daniel Vetter , Kees Cook , Dan Williams , Andrew Morton , John Hubbard , J??r??me Glisse , Jan Kara Subject: Re: [PATCH v5 08/15] mm: Add unsafe_follow_pfn Message-ID: <20201102164131.GA25526@infradead.org> References: <20201030100815.2269-1-daniel.vetter@ffwll.ch> <20201030100815.2269-9-daniel.vetter@ffwll.ch> <20201102072931.GA16419@infradead.org> <20201102130115.GC36674@ziepe.ca> <20201102155256.GG36674@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201102155256.GG36674@ziepe.ca> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 11:52:56AM -0400, Jason Gunthorpe wrote: > Need to hold the lock to check that and there are two ways to register > notifiers these days, so it feels to expensive to me. > > CH's 'export symbol only for kvm' really does seem the most robust way > to handle this though. I hope I can get that done for this merge window, but I'm not sure. I still think we should at least have a new name for the old follow_pfn that no one should use. And it should sound more scary than unsafe_follow_pfn :)