]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: Switch to guest MMU context as late as possible
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:40 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:14 +0000 (22:12 +1000)
commit9b88259f18d574a20af688dc72a5ce2650b4a55c
treebf4fbc5a080c2558dce60998ed668c7bf4b93264
parentaee15245f760363730a6d3b54afd34d4088b3dc8
KVM: PPC: Book3S HV P9: Switch to guest MMU context as late as possible

Move MMU context switch as late as reasonably possible to minimise code
running with guest context switched in. This becomes more important when
this code may run in real-mode, with later changes.

Move WARN_ON as early as possible so program check interrupts are less
likely to tangle everything up.

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