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:55 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-29 21:02:10 +1000
commit107c55005fbd5243ee31fb13b6f166cde9e3ade1 (patch)
tree568f339e22efacf3f857e8ed04e926e9a97f2bf5 /tools/testing/selftests/powerpc/include/pkeys.h
parentpowerpc/pseries: Use doorbells even if XIVE is available (diff)
downloadlinux-dev-107c55005fbd5243ee31fb13b6f166cde9e3ade1.tar.xz
linux-dev-107c55005fbd5243ee31fb13b6f166cde9e3ade1.zip
powerpc/pseries: Add KVM guest doorbell restrictions
KVM guests have certain restrictions and performance quirks when using doorbells. This patch moves the EPAPR KVM guest test so it can be shared with PSERIES, and uses that in doorbell setup code to apply the KVM guest quirks and improves IPI performance for two cases: - PowerVM guests may now use doorbells even if they are secure. - KVM guests no longer use doorbells if XIVE is available. There is a valid complaint that "KVM guest" is not a very reasonable thing to test for, it's preferable for the hypervisor to advertise particular behaviours to the guest so they could change if the hypervisor implementation or configuration changes. However in this case we were already assuming a KVM guest worst case, so this patch is about containing those quirks. If KVM later advertises fast doorbells, we should test for that and override the quirks. 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-4-npiggin@gmail.com
Diffstat (limited to 'tools/testing/selftests/powerpc/include/pkeys.h')
0 files changed, 0 insertions, 0 deletions