OSDN Git Service

KVM: PPC: Book3S HV: radix: Do not clear partition PTE when RC or write bits do not...
authorNicholas Piggin <npiggin@gmail.com>
Thu, 17 May 2018 07:06:31 +0000 (17:06 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 18 May 2018 05:38:23 +0000 (15:38 +1000)
commit878cf2bb2d8d6164df7b63b2239859f99fea212a
tree0cafbdf595b768ad8a536f5fcc591e75c743ae55
parentbc64dd0e1c4eddbec75dd5aa86b60c2a834aaef3
KVM: PPC: Book3S HV: radix: Do not clear partition PTE when RC or write bits do not match

Adding the write bit and RC bits to pte permissions does not require a
pte clear and flush. There should not be other bits changed here,
because restricting access or changing the PFN must have already
invalidated any existing ptes (otherwise the race is already lost).

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