OSDN Git Service

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)
commit9dfe7aa7bc50556063c8658f59ad475131c09b65
treef39fc4d311a843b52e4cbfa1b296a140ed28e3a0
parent9a1e530bbbdaa2184993a7d7fc61d78871540ccd
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