Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp209042pxx; Mon, 26 Oct 2020 06:57:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZk1x6g4bD3nZXs8+kdWZeIQETG1rEoGS6r7XMFTE1ibGDb1XPUgnPUQGx7AiW1Km1elAz X-Received: by 2002:a05:6402:a45:: with SMTP id bt5mr230553edb.101.1603720624066; Mon, 26 Oct 2020 06:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603720624; cv=none; d=google.com; s=arc-20160816; b=KxqNyIFzw/8idUk8WdqN29I5wLK6aJE94NzfwdfAlX3ovvFnHjIcorszKwdcVgFye1 AzY5U7LqUiplgdD/9P8h9L1bVoPECVwM2WmWL8aJIw7DFvTpqT3s1dvo4o8hoKtXU/0a v5Cuti1clmAFLKzEMruew1Nm+mnb1bzZtpgSCRO8zMIcNX/quRU+CeSU0XgNpx/T9u3X Lg0JAI+OE0+4T4uMhtdhcjlbIp1NPOvvJcXWmn3O5gVf3yapLWKOQblO2UoHqjQF1NqF dDNRtua0DNufIudmv+xzIm6stvVwOu+uUbiRhoNZDdz7NKfBN5+pHQIW7uPx/zwEbno/ xdjQ== 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=34Y6r4GAweG7Mt/E2/mBFuI95NWQikkATWq3rx/SY8E=; b=Ca3FE6WW6jxslBePCEw3Fgfir3PzjJ3hGOE4GY3Upf1QHfUWAB5wojxiIlqgRrCPjt mvpzr+Lf25JPONBHHqHariU9TwoU5Y9+GDcFtkYv8ampSVkVhKNT2tQClsPN9YGoRwAV Xeho98JCOFk0sbqYw2r/x3zmv6eYUvWcFYLC8FWXxVuvE+OtM0w5xjp5DOG8NOvzGykh OvAoIncsbfHkCAp0Dbg/D+yGWNmpEKYBi9LEGcwfnw48FB/+r8xszpxP7/j6y+LPDTDb E7jpaeCFZkyd8PHNQHil7/aSq3yBWF62y8X5+q72C8/umhATxPUWVhQ92il73m8oWrD1 Nnng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ibm1wh4V; 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 o10si7134014eja.154.2020.10.26.06.56.41; Mon, 26 Oct 2020 06:57:04 -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=@infradead.org header.s=casper.20170209 header.b=ibm1wh4V; 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 S1774857AbgJZN3Q (ORCPT + 99 others); Mon, 26 Oct 2020 09:29:16 -0400 Received: from casper.infradead.org ([90.155.50.34]:39728 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1774827AbgJZN3P (ORCPT ); Mon, 26 Oct 2020 09:29:15 -0400 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=34Y6r4GAweG7Mt/E2/mBFuI95NWQikkATWq3rx/SY8E=; b=ibm1wh4V//Ao40finn9v+c/DR0 WKib4xCrTtJVXIcaYUSJ1zU9hxgEEylo/MOwv+q5ZiA8y+g2DZLWIzl8wDZgPrphU363e/eovSkbe wa8+Q/VSuBNCwj2sFg7XcOvhFS/EE0Svh1QiUwmtbID0haANDZN3FPixUgMNfP2TKAwyB7du+BqX3 57Zm9kGjWCqnlE1u6dMQSnpHdc1Q3QeMZ4MsfZ5NFLADi86YvqhE8PZsiwcstdJ9d6eQLLgTALS2D qTsGz1vLwcBqGa+R08Uhn6VTC1hgBXjQz19Ryi4baKdQnioISiyXvnUwX4F1y7aH0k8+ydR8NXeyq T3YFjdTQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX2Y2-000704-4d; Mon, 26 Oct 2020 13:28:30 +0000 Date: Mon, 26 Oct 2020 13:28:30 +0000 From: Matthew Wilcox To: John Hubbard Cc: "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , David Rientjes , Andrea Arcangeli , Kees Cook , Will Drewry , "Edgecombe, Rick P" , "Kleen, Andi" , Liran Alon , Mike Rapoport , x86@kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory Message-ID: <20201026132830.GQ20115@casper.infradead.org> References: <20201020061859.18385-1-kirill.shutemov@linux.intel.com> <20201020061859.18385-9-kirill.shutemov@linux.intel.com> <20201022114946.GR20115@casper.infradead.org> <30ce6691-fd70-76a2-8b61-86d207c88713@nvidia.com> <20201026042158.GN20115@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 25, 2020 at 09:44:07PM -0700, John Hubbard wrote: > On 10/25/20 9:21 PM, Matthew Wilcox wrote: > > I don't think the page pinning approach is ever valid. For file > > Could you qualify that? Surely you don't mean that the entire pin_user_pages > story is a waste of time--I would have expected you to make more noise > earlier if you thought that, yes? I do think page pinning is the wrong approach for everything. I did say so at the time, and I continue to say so when the opportunity presents itself. But shouting about it constantly only annoys people, so I don't generally bother. I have other things to work on, and they're productive, so I don't need to spend my time arguing. > > It's been five years since DAX was merged, and page pinning still > > doesn't work. How much longer before the people who are pushing it > > realise that it's fundamentally flawed? > > Is this a separate rant about *only* DAX, or is general RDMA in your sights > too? :) This is a case where it's not RDMA's _fault_ that there's no good API for it to do what it needs to do. There's a lot of work needed to wean Linux device drivers off their assumption that there's a struct page for every byte of memory.