[PATCH] KVM: PPC: Book3S HV P9: Optimise loads around context switch
Fabiano Rosas
farosas at linux.ibm.com
Tue Jan 25 04:29:45 AEDT 2022
Nicholas Piggin <npiggin at gmail.com> writes:
> 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 at gmail.com>
Reviewed-by: Fabiano Rosas <farosas at linux.ibm.com>
More information about the Linuxppc-dev
mailing list