From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDED0C00A89 for ; Mon, 2 Nov 2020 16:44:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6063D22268 for ; Mon, 2 Nov 2020 16:44:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ns+Gb1Z5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="nE3J0Pfg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6063D22268 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1Itt4vGAUFOXPshlfcUsiY/VXeVeBEYW7+6RqAlts28=; b=ns+Gb1Z5KBxH/UIlxDwN5VDDQ tetT/qb7TX2t+jhhcWToxIVnI6z23u9LdL91Rz99ml3Wj+VfGkZtwHv/GfUclunsNdrJOMJBNZBXe 0UrbJiRmeOkHgJxwJ1O5ds2UYVgShoO4zOsBG0bUX9rQx4FU70pDLAqP5RULu9X7Kl8PY0BpjA5hz eDtZeeY9qBdwo4tHLJoXBtbIxwYyQ/z3a6xeoYNLxd+5hQmYJQgdBc+qHszK9xgatFr+PhRs70RNr Cd/iqRNYQ21A8FvGbPWdaDOpIbREXfRwY4FyGoTbC0VQ2quhA/LCQC8q0mXJF9MSFO+P6ecLAsZOd Y8irKPKwQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcuQ-0005BI-Ip; Mon, 02 Nov 2020 16:42:18 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZctl-0004qZ-OL for linux-arm-kernel@merlin.infradead.org; Mon, 02 Nov 2020 16:41:37 +0000 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 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-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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc , Jan Kara , Kees Cook , KVM list , Daniel Vetter , LKML , DRI Development , Christoph Hellwig , Linux MM , J??r??me Glisse , John Hubbard , Daniel Vetter , Dan Williams , Andrew Morton , Linux ARM , "open list:DMA BUFFER SHARING FRAMEWORK" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 :) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel