Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7020602ybi; Mon, 22 Jul 2019 05:50:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVjlo1t8GcurfhRMmhEINfKb3nZfd0xK4TM0O6Bmj33c3VCwhTkLa8MWmjroG9+92KqNA6 X-Received: by 2002:a65:514c:: with SMTP id g12mr71697388pgq.76.1563799808210; Mon, 22 Jul 2019 05:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563799808; cv=none; d=google.com; s=arc-20160816; b=N5nT7DTw7E0iZiE7JfdguG9Sq+482EF/6wImPVpLbp7MsuBEO7h6BSAThILvGxXHME nzGOZ/y3t5u5kFBtpOXcXmJJwjRVHFXE3FGAYbWxH9riDc8I0dUXYRf5Wbssg27qRyz6 mqCNZQPfaSo+CMwmq4iIpOiVHqGlL17oWTcMk82K3M5sRpjII/ZI7S1ej/WrU8AFqAoW 8xRbMqYG8Rye2w/4BT8lnrarwIA+uhD1+7I61ECn9SGU52Dm92RAF3HQUl+Lh3sHU34+ IYIkSZvux8spKLefCOu7ixYV1DVSARrISW1Vcg35r5ijSgrJZ1mbv3OvcBsUQCYVCecL ad+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9TwEeiv3tAVyHgkzTpEKGutIGiR1ezQhfTVqiOL+Sb0=; b=CPPZ+RNRCiar/LFpeVyrboL3hNkkP/VXYN8OmN6/Z//OvcMkClmKtAr/9kxq9Dd9Iw wxYOswMem7qYQj+rZR3wa8N2fyKQkl2eA06N3c4neiPQ+v0bvEQMfIrFiv/J8K8PlV5g wyiiPh/MTpLTmYfHydwW4fNOi7NbUrgg//bWc2Lq1CQeNY0N3ZYDCYMZ73D2l/j8aqzI ytUIYNk1UGt9JX4J7rOdyL7mG22qMHpEpghyAFJrbp9QOFfvfFh5YWnUh1xikfRybOQw wYbfhvkjHYa+jq6OXAMasDhiV7VUI/vyd3DzWyiillglizpFRr7RgGRBlMs0q/izx3ga 9IeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UCILmwMh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j37si37021398plb.58.2019.07.22.05.49.52; Mon, 22 Jul 2019 05:50:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UCILmwMh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730162AbfGVMBk (ORCPT + 99 others); Mon, 22 Jul 2019 08:01:40 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48300 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729347AbfGVMBk (ORCPT ); Mon, 22 Jul 2019 08:01:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9TwEeiv3tAVyHgkzTpEKGutIGiR1ezQhfTVqiOL+Sb0=; b=UCILmwMh4QosYLRTNnXrods3F 4KxY+e4JGnpRThW5geoeGaInPL7r1BXuS44bNjBBemcEa9ZgxZaHOE2oJQmNVQyO2WhH/943vstsT w20+k6OAS4AjohS8FWHKG3aBodnj/zud/jY8BKK+ZsOGilYtq7YvghVnKnCIfiHm5VEhxTvaeebFP 0PuKLNenX5rDBPcOmj5B95w47dd5BwlcWN+uAQCA7islpDVX4F2cG38rTkqdvx8vnhGBYz7dcui53 7hEJbp2L3mZ2cJomjlLAH6VT6ZV2c9rQYdIjQBGDvlxrMIbVARj5DueGfxUtGnE9XEs1E8yyeD9JU lsrmDoM5A==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hpX0U-0005w8-Q0; Mon, 22 Jul 2019 12:01:30 +0000 Date: Mon, 22 Jul 2019 05:01:30 -0700 From: Christoph Hellwig To: Jason Gunthorpe Cc: John Hubbard , Pavel Machek , Christoph Hellwig , john.hubbard@gmail.com, SCheung@nvidia.com, akpm@linux-foundation.org, aneesh.kumar@linux.vnet.ibm.com, benh@kernel.crashing.org, bsingharora@gmail.com, dan.j.williams@intel.com, dnellans@nvidia.com, ebaskakov@nvidia.com, hannes@cmpxchg.org, jglisse@redhat.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, liubo95@huawei.com, mhairgrove@nvidia.com, mhocko@kernel.org, paulmck@linux.vnet.ibm.com, ross.zwisler@linux.intel.com, sgutti@nvidia.com, torvalds@linux-foundation.org, vdavydov.dev@gmail.com Subject: Re: [PATCH] mm/Kconfig: additional help text for HMM_MIRROR option Message-ID: <20190722120130.GA17178@infradead.org> References: <20190717074124.GA21617@amd> <20190719013253.17642-1-jhubbard@nvidia.com> <20190719055748.GA29082@infradead.org> <20190719105239.GA10627@amd> <20190719114853.GB15816@ziepe.ca> <20190719120043.GA15320@infradead.org> <20190719120432.GC11224@amd> <20190722115804.GB7607@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190722115804.GB7607@ziepe.ca> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 08:58:04AM -0300, Jason Gunthorpe wrote: > No one has given me a satisfactory answer about the restriction > either. > > The only thing this kconfig controls that could possibly be arch > specific is the page walking code in hmm_range_snapshot and > related. > > Maybe there is/was some arch entanglement there? The page walking code is supposed to be platform independent. I did push a branch to the buildbot a few days ago to catch issues, and the only one found so far is an abuse of pte_index() that can be trivially fixed. The other thing I noticed is that the use of some of the p??_none/protnone/present checks seems inconsistent, but I did not have time to audit that yet.