KVM: PPC: Book3S HV P9: Optimise timebase reads
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:52:02 +0000 (19:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:59 +0000 (21:08 +1100)
commitcb2553a093093ae46cfaee31321bcedcd0312c5d
tree9dd0e5b1fff974bc71773e5786e71454d340abe3
parent6547af3eba88e4806e853fee7547031b2cc6a560
KVM: PPC: Book3S HV P9: Optimise timebase reads

Reduce the number of mfTB executed by passing the current timebase
around entry and exit code rather than read it multiple times.

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-25-npiggin@gmail.com
arch/powerpc/include/asm/kvm_book3s_64.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_p9_entry.c