KVM: PPC: Book3S HV P9: Don't restore PSSCR if not needed
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:52:19 +0000 (19:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:09:01 +0000 (21:09 +1100)
commita089a6869e7f613a8d961ac65bafd127317e4c5c
tree4e1e8b30695f1eb621699f150f6516a3cd57f4bc
parent9c75f65f3583b0cf467c378a1076f0b50bbc2fb1
KVM: PPC: Book3S HV P9: Don't restore PSSCR if not needed

This also moves the PSSCR update in nested entry to avoid a SPR
scoreboard stall.

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