From: Paul Mackerras Date: Mon, 07 May 2018 00:32:52 +0000 Subject: Re: [PATCH 02/10] KVM: PPC: Book3S HV: radix clear pte when unmapping Message-Id: <20180507003252.GA9440@fergus.ozlabs.ibm.com> List-Id: References: <20180506073731.13097-3-npiggin@gmail.com> In-Reply-To: <20180506073731.13097-3-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Sun, May 06, 2018 at 05:37:23PM +1000, Nicholas Piggin wrote: > The current partition table unmap code clears the _PAGE_PRESENT bit > out of the pte, which leaves pud_huge/pmd_huge true and does not > clear pud_present/pmd_present. This can confuse subsequent page > faults. I'm OK with the patch, but this sounds like we can have a pmd where the hardware does not consider it to be a valid translation, but pmd_huge() and pmd_present() are both true. That sounds like a disaster waiting to happen elsewhere -- pmd_present() at least should be fixed, and possible pmd_huge() also. Paul.