]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Make radix clear pte when unmapping
authorNicholas Piggin <npiggin@gmail.com>
Wed, 9 May 2018 02:20:15 +0000 (12:20 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 17 May 2018 05:16:59 +0000 (15:16 +1000)
commit028f2cf2b616fb2383cd2f0d789e3d306c37221e
tree8d99863b05c7f8af0ab88c348eaca6a6f72bade1
parent9c1ff2cf1c31e72877656c9ef294f2235911d794
KVM: PPC: Book3S HV: Make radix clear pte when unmapping

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 and possibly lead to the guest looping doing continual
hypervisor page faults.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_64_mmu_radix.c