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)
commit9c75f65f3583b0cf467c378a1076f0b50bbc2fb1
tree211134f7fe2645a3f7789daa3bf72ec65ba8ebeb
parentcf3b16cfa6503b1fe5e680f9711262e6a51ef097
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