aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/include/pkeys.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2020-07-26 13:51:54 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-29 21:02:09 +1000
commit5b06d1679f2fe874ef49ea11324cd893ec9e2da8 (patch)
treeb7192dc38b5dc1d99f0cb7a080150309a21abb90 /tools/testing/selftests/powerpc/include/pkeys.h
parentpowerpc: Inline doorbell sending functions (diff)
downloadlinux-dev-5b06d1679f2fe874ef49ea11324cd893ec9e2da8.tar.xz
linux-dev-5b06d1679f2fe874ef49ea11324cd893ec9e2da8.zip
powerpc/pseries: Use doorbells even if XIVE is available
KVM supports msgsndp in guests by trapping and emulating the instruction, so it was decided to always use XIVE for IPIs if it is available. However on PowerVM systems, msgsndp can be used and gives better performance. On large systems, high XIVE interrupt rates can have sub-linear scaling, and using msgsndp can reduce the load on the interrupt controller. So switch to using core local doorbells even if XIVE is available. This reduces performance for KVM guests with an SMT topology by about 50% for ping-pong context switching between SMT vCPUs. An option vector (or dt-cpu-ftrs) could be defined to disable msgsndp to get KVM performance back. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Tested-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200726035155.1424103-3-npiggin@gmail.com
Diffstat (limited to 'tools/testing/selftests/powerpc/include/pkeys.h')
0 files changed, 0 insertions, 0 deletions