KVM: PPC: Book3S HV: Use stop instruction rather than nap on POWER9
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 18 Nov 2016 03:34:07 +0000 (14:34 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 23 Nov 2016 22:24:23 +0000 (09:24 +1100)
commitbf53c88e42ac5dfdef649888d01b3bc96375647b
treecdd6ddb2340db19c2c61d60ed7d01d6e9c60503f
parentf725758b899f11cac6b375e332e092dc855b9210
KVM: PPC: Book3S HV: Use stop instruction rather than nap on POWER9

POWER9 replaces the various power-saving mode instructions on POWER8
(doze, nap, sleep and rvwinkle) with a single "stop" instruction, plus
a register, PSSCR, which controls the depth of the power-saving mode.
This replaces the use of the nap instruction when threads are idle
during guest execution with the stop instruction, and adds code to
set PSSCR to a value which will allow an SMT mode switch while the
thread is idle (given that the core as a whole won't be idle in these
cases).

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv_rmhandlers.S