]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: Only execute mtSPR if the value changed
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:52:04 +0000 (19:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:59 +0000 (21:08 +1100)
commit8ff94ef1c1e70223cf69fdbaa4be0830b565df9e
treef39fc4d311a843b52e4cbfa1b296a140ed28e3a0
parent283ea1836872da2c8693befee60871687d993cd2
KVM: PPC: Book3S HV P9: Only execute mtSPR if the value changed

Keep better track of the current SPR value in places where
they are to be loaded with a new context, to reduce expensive
mtSPR operations.

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