Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3166619yba; Sun, 28 Apr 2019 19:07:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNUcIVaMivs0jobsXBlgOTnUef85NJSa/Q6kxbBgbwIIupveg2VRDygQovCaQ+6kXZGgZR X-Received: by 2002:a63:40c2:: with SMTP id n185mr22560572pga.364.1556503629598; Sun, 28 Apr 2019 19:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556503629; cv=none; d=google.com; s=arc-20160816; b=r3/gGmf89aXDsva4F3L/ucgYehCxjfsamYqgldN/Q0YSk2crMOEoF/Uv2AQFf3ZRXZ TVjwcBnkRfzC7SlARtF6yE+vnOp0CtW2IAh9dOqTKEyDxkyoo18/xnp7dGomUMHLSLNJ JLtxXOX05/cDRRV35KsSBFq52bEk5K/FWOhjThVoXW+VSm/PxxTBoqSFmPEQG8lVYsxs 7jaaAwz7eorMeI58FjcGB9OFawSefWLyvT4oR4h/l5sPEnDeMuLKium+nR9gHl9+ZLzx 4d6yras1cMVpqsdEDFmVFBzEQfhLYEgsLmXclyg4tmQskPZRkyb0alM4ZIcj0erXX92o ZoKw== 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=ifUYKzvlVQ0C5bdH0fKRJjKjAZawWXmgnRh/ZT7iL88=; b=kpbX6DzMZuZbZ4O80UVciFWOyzGIB7+aGlQzLXnXNopyzsYH3CKZXAR/bye9bCajxY zGaDDSHcm4I7LDoEeU4ju1a/UHToCEpNZ+bl4nOGGrZnx+7dZ4kmHmj3Jai8VnZ51iqZ OfoOY4F1TJRo94U13vcS5YGIcPsvGG6bsofAxdTZ04/i7ZHIpWfmDoCuqylZGLlZVaoC SBTAdDMPl+EIolUFGHNjmSDSRx+M4RZdUwzvFLOkwsKIr9ryOz5aHfZYoKs3O7gbG9xH oS0Vu9aRNpbvHnLsLTGJdhyFSBI8Lp6o+6kg0NlLOcZwdyToJ0UAt+nHyRzd4poJZEi+ dqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=ZDh+JJdW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si7135199pfi.13.2019.04.28.19.06.52; Sun, 28 Apr 2019 19:07:09 -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=pass header.i=@ozlabs.org header.s=201707 header.b=ZDh+JJdW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbfD2CGB (ORCPT + 99 others); Sun, 28 Apr 2019 22:06:01 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:46401 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbfD2CGB (ORCPT ); Sun, 28 Apr 2019 22:06:01 -0400 Received: by ozlabs.org (Postfix, from userid 1003) id 44sp0j4Vkwz9s7T; Mon, 29 Apr 2019 12:05:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1556503557; bh=C9jMjFQh8bIIcTLpSucBn3+IOPxRQfPJx62R3f27fHA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZDh+JJdWNbUnjZwYJ2OgXrlC5Te6OdRn22WeQuX4mEFi/3J71pfQo+39F6D6VmfIs gN6aTHh8fhD28hDxoQTNfGh80vVwOayHLTgGy/WObYcwr29+LgPtSFjpNYGvpucq7e RFvR2OWhFp0B7fWmnkVIVl5FSX1jogLJM1ivdGOqA7fkxhMHaDiTR0CdT1LUZLyBXU kNwsUKwXM2eBaXfB8xSfPnOIqb8nOoKndLFvhgA8sb3l7oGWYMgduupXvs/dphOqD1 8Md0UWqf3a3EcS154gfVMUDHZtwTRPKEseYrZA6+ZANLVUVipPwrDyKTM5PLPIDLER jBXEXZZQAZv0g== Date: Mon, 29 Apr 2019 12:05:55 +1000 From: Paul Mackerras To: Steven Price Cc: linux-mm@kvack.org, Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?iso-8859-1?B?Suly9G1l?= Glisse , Peter Zijlstra , Thomas Gleixner , Will Deacon , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , "Liang, Kan" , Andrew Morton , Benjamin Herrenschmidt , Michael Ellerman , kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v8 05/20] KVM: PPC: Book3S HV: Remove pmd_is_leaf() Message-ID: <20190429020555.GB11154@blackberry> References: <20190403141627.11664-1-steven.price@arm.com> <20190403141627.11664-6-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190403141627.11664-6-steven.price@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. If it makes things clearer, I could rename it to "guest_pmd_is_leaf()" or something similar. Paul.