selftests/powerpc: Skip PROT_SAO test in guests/LPARS
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Sep 2020 12:45:17 +0000 (22:45 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Sep 2020 12:47:02 +0000 (22:47 +1000)
commitfc1f178cdb31783ff37296ecae817a1045a1a513
treecdfdcd3bf7bcfbb760594607a382151d271a916d
parent103a8542cb35b5130f732d00b0419a594ba1b517
selftests/powerpc: Skip PROT_SAO test in guests/LPARS

In commit 9b725a90a8f1 ("powerpc/64s: Disallow PROT_SAO in LPARs by
default") PROT_SAO was disabled in guests/LPARs by default. So skip
the test if we are running in a guest to avoid a spurious failure.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200901124653.523182-1-mpe@ellerman.id.au
tools/testing/selftests/powerpc/mm/prot_sao.c