OSDN Git Service

KVM: PPC: Book3S HV P9: Improve mtmsrd scheduling by delaying MSR[EE] disable
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:51:58 +0000 (19:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:58 +0000 (21:08 +1100)
commit2251fbe76395e4d89c31099984714c5f1135f052
treec1971c38297e1a4f0672386bf59ff7b133d5bf1e
parent34e119c96b2b381278d1ddf6b1708678462daba4
KVM: PPC: Book3S HV P9: Improve mtmsrd scheduling by delaying MSR[EE] disable

Moving the mtmsrd after the host SPRs are saved and before the guest
SPRs start to be loaded can prevent an SPR scoreboard stall (because
the mtmsrd is L=1 type which does not cause context synchronisation.

This is also now more convenient to combined with the mtmsrd L=0
instruction to enable facilities just below, but that is not done yet.

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-21-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c