]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV P9: Test dawr_enabled() before saving host DAWR SPRs
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:52:18 +0000 (19:52 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:09:01 +0000 (21:09 +1100)
commita9563cd9b5af7cb576d192d597dd0254acb9cf45
tree211134f7fe2645a3f7789daa3bf72ec65ba8ebeb
parent4f401b5a196fa006b36aa4c94fa611cbd8f7cc75
KVM: PPC: Book3S HV P9: Test dawr_enabled() before saving host DAWR SPRs

Some of the DAWR SPR access is already predicated on dawr_enabled(),
apply this to the remainder of the accesses.

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