KVM: PPC: Book3S HV: CTRL SPR does not require read-modify-write
authorNicholas Piggin <npiggin@gmail.com>
Tue, 23 Nov 2021 09:51:55 +0000 (19:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 10:08:58 +0000 (21:08 +1100)
commita1a19e1154e4e9c6c1136474cb040657b1c17817
treee28f6b021e6c4eb1fc3bdea755a5ab46c313e62c
parentb1adcf57ceca7eab9bfdafc754802e05e634bfcc
KVM: PPC: Book3S HV: CTRL SPR does not require read-modify-write

Processors that support KVM HV do not require read-modify-write of
the CTRL SPR to set/clear their thread's runlatch. Just write 1 or 0
to it.

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-18-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S