summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/time.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-05-28 11:07:29 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2021-06-10 14:12:12 +0200
commit413679e73bdfc2720dc2fa2172b65b7411185fa7 (patch)
tree6157e508faebd07186bab68cf7e2187c2fb92a02 /arch/powerpc/kernel/time.c
parentKVM: PPC: Book3S HV P9: implement kvmppc_xive_pull_vcpu in C (diff)
downloadlinux-413679e73bdfc2720dc2fa2172b65b7411185fa7.tar.xz
linux-413679e73bdfc2720dc2fa2172b65b7411185fa7.zip
KVM: PPC: Book3S HV P9: Move setting HDEC after switching to guest LPCR
LPCR[HDICE]=0 suppresses hypervisor decrementer exceptions on some processors, so it must be enabled before HDEC is set. Rather than set it in the host LPCR then setting HDEC, move the HDEC update to after the guest MMU context (including LPCR) is loaded. There shouldn't be much concern with delaying HDEC by some 10s or 100s of nanoseconds by setting it a bit later. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210528090752.3542186-10-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/time.c')
0 files changed, 0 insertions, 0 deletions