powerpc/64s/pseries: radix flush translations before MMU is enabled at boot
authorNicholas Piggin <npiggin@gmail.com>
Mon, 2 Sep 2019 15:29:29 +0000 (01:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 Sep 2019 04:22:40 +0000 (14:22 +1000)
commit7e71c428a60e2029585be7d7cc22775f442e5b2c
tree8c7fa912a9014f9318f90b169f7330c0d92025c9
parentfd13daea5f72605a0a7386ebedbb5ff2b2a48da4
powerpc/64s/pseries: radix flush translations before MMU is enabled at boot

Radix guests are responsible for managing their own translation caches,
so make them match bare metal radix and hash, and make each CPU flush
all its translations right before enabling its MMU.

Radix guests may not flush partition scope translations, so in
tlbiel_all, make these flushes conditional on CPU_FTR_HVMODE. Process
scope translations are the only type visible to the guest.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190902152931.17840-5-npiggin@gmail.com
arch/powerpc/mm/book3s64/radix_pgtable.c
arch/powerpc/mm/book3s64/radix_tlb.c