OSDN Git Service

KVM: PPC: Book3S HV P9: Reduce mtmsrd instructions required to save host SPRs
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:51:57 +0000 (19:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:58 +0000 (21:08 +1100)
commit34e119c96b2b381278d1ddf6b1708678462daba4
tree1fd025d1ff2fea5312a7f32232101c9cc49897ec
parent174a3ab633392859888fc1a5cff278d5546d8474
KVM: PPC: Book3S HV P9: Reduce mtmsrd instructions required to save host SPRs

This reduces the number of mtmsrd required to enable facility bits when
saving/restoring registers, by having the KVM code set all bits up front
rather than using individual facility functions that set their particular
MSR bits.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-20-npiggin@gmail.com
arch/powerpc/include/asm/switch_to.h
arch/powerpc/kernel/process.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_p9_entry.c