Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp929761yba; Thu, 9 May 2019 08:06:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzroC4Zg/OWtA6ePhtUjNhC0JKWXZzM6jOD7vekeS6gj9MNItIALZ8/X7/O6ApIdI3pSw0W X-Received: by 2002:a63:5421:: with SMTP id i33mr6242011pgb.257.1557414415010; Thu, 09 May 2019 08:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557414415; cv=none; d=google.com; s=arc-20160816; b=WWy15QxzAIL5iUbtIp5G1KybaE6G1DFVanZf7dF1ebGOPzYi1F51m0oo01HI340ZSY usIuhuKuj5tRBAYigAZW+wB08ZbsfW/XDRa/5HCDj0q7Y92uyVjmEuFKEkXh/s5Dlm4V pSUisYc1cPeUAX8VG8ridD7n+aGc89aDUHgMAY4rpQBYmIGvVKiRx1oJFILhxtDzJCuu Gf/dDr8STCtk5R4e7rrCraMbu2OfJTJhkwjwuczUfkoAnvXjyIv7jC0gHZbysJ//Dk/D LtTI54QqxgFlI8J/fFQsTQHaG9mcWHqpVPLC7PBt0fA7qEedKryeJcAQsOoKSCu2IJaR mDvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ky9K8qS8j5BIE07EOS08UdkCfuORwqAeyY98/ndNtb0=; b=mvkilYwI/J0VlTrkk+Bk4AILdGSPpE7tQ6V+C6L4pDLx6ac8fcjTyHzPi+gpYKkWT9 spWsU/ZcW7lcQhxQV7rLtXc4WLoyvJPkCJWM03K95tIGovwj7aeJ9NlDFbZjStFeVkb0 dENm/BMO9Xaw3tpXARXh/pqAFHCUvmLN4qd0zJQwQqxH6Z+um6mpjcGSXMlNhyGrxYKF Z2LyVj2nSl/GgfwuFmAbtMyiLOwVbxrSkHh4hWVWok4PQRJNlyVDhcxcLHJMN5f5EA4+ A6van5KYuvPtOYA0T5lJXjIAQUaohj3M7eyx/4uwSLuynWKb21ZwmXkMOBYf9ekNtyEL xvDw== ARC-Authentication-Results: i=1; mx.google.com; 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 o4si3273050plb.312.2019.05.09.08.06.36; Thu, 09 May 2019 08:06:54 -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; 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 S1726721AbfEIPDu (ORCPT + 99 others); Thu, 9 May 2019 11:03:50 -0400 Received: from foss.arm.com ([217.140.101.70]:43810 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbfEIPDt (ORCPT ); Thu, 9 May 2019 11:03:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2EEA7374; Thu, 9 May 2019 08:03:49 -0700 (PDT) Received: from [10.1.196.69] (e112269-lin.cambridge.arm.com [10.1.196.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 52BDD3F6C4; Thu, 9 May 2019 08:03:45 -0700 (PDT) Subject: Re: [PATCH v8 05/20] KVM: PPC: Book3S HV: Remove pmd_is_leaf() To: Paul Mackerras Cc: Mark Rutland , Peter Zijlstra , Benjamin Herrenschmidt , Dave Hansen , Will Deacon , linux-mm@kvack.org, "H. Peter Anvin" , "Liang, Kan" , Michael Ellerman , x86@kernel.org, Ingo Molnar , Catalin Marinas , Arnd Bergmann , kvm-ppc@vger.kernel.org, =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , linux-kernel@vger.kernel.org, James Morse , Andrew Morton , linuxppc-dev@lists.ozlabs.org References: <20190403141627.11664-1-steven.price@arm.com> <20190403141627.11664-6-steven.price@arm.com> <20190429020555.GB11154@blackberry> From: Steven Price Message-ID: Date: Thu, 9 May 2019 16:03:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190429020555.GB11154@blackberry> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/04/2019 03:05, Paul Mackerras wrote: > On Wed, Apr 03, 2019 at 03:16:12PM +0100, Steven Price wrote: >> Since pmd_large() is now always available, pmd_is_leaf() is redundant. >> Replace all uses with calls to pmd_large(). > > NAK. I don't want to do this, because pmd_is_leaf() is purely about > the guest page tables (the "partition-scoped" radix tree which > specifies the guest physical to host physical translation), not about > anything to do with the Linux process page tables. The guest page > tables have the same format as the Linux process page tables, but they > are managed separately. Fair enough, I'll drop this patch in the next posting. > If it makes things clearer, I could rename it to "guest_pmd_is_leaf()" > or something similar. I'll leave that decision up to you - it might prevent similar confusion in the future. Steve