KVM: PPC: Book3S HV P9: Add helpers for OS SPR handling
authorNicholas Piggin <npiggin@gmail.com>
Fri, 28 May 2021 09:07:39 +0000 (19:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Jun 2021 12:12:14 +0000 (22:12 +1000)
commitedba6aff4f2c3893e168df6a2e9a20f3c39b0b30
tree258aca5a53cfc5c80d4613df3a7193f331d3e6f1
parent68e3baaca8c56bbb336d2215f201f4047ce736e5
KVM: PPC: Book3S HV P9: Add helpers for OS SPR handling

This is a first step to wrapping supervisor and user SPR saving and
loading up into helpers, which will then be called independently in
bare metal and nested HV cases in order to optimise SPR access.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210528090752.3542186-20-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c