KVM: PPC: Book3S HV P9: Comment and fix MMU context switching code
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:52:17 +0000 (19:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:09:01 +0000 (21:09 +1100)
commitcf3b16cfa6503b1fe5e680f9711262e6a51ef097
treedcb79e025bb6667dbd17750608ed1062c88cbb48
parent5236756d04454c7ce9f45e27b434d75b8d6f8759
KVM: PPC: Book3S HV P9: Comment and fix MMU context switching code

Tighten up partition switching code synchronisation and comments.

In particular, hwsync ; isync is required after the last access that is
performed in the context of a partition, before the partition is
switched away from.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-40-npiggin@gmail.com
arch/powerpc/kvm/book3s_64_entry.S
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv_p9_entry.c