]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: Optimise loads around context switch
authorNicholas Piggin <npiggin@gmail.com>
Sun, 23 Jan 2022 11:47:25 +0000 (21:47 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 May 2022 11:33:26 +0000 (21:33 +1000)
commit1f6ef163f9aecee345ed4f0c380e0a04ae194e47
treea1aa737a6eaf5d55c1453643d01059205739f55c
parent8436b239c519699258f7d9fe80a79d0c226090a9
KVM: PPC: Book3S HV P9: Optimise loads around context switch

It is better to get all loads for the register values in flight
before starting to switch LPID, PID, and LPCR because those
mtSPRs are expensive and serialising.

This also just tidies up the code for a potential future change
to the context switching sequence.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220123114725.3549202-1-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv_p9_entry.c