selftests/powerpc: Add test for real address error handling
authorGanesh Goudar <ganeshgr@linux.ibm.com>
Fri, 7 Jan 2022 14:14:27 +0000 (19:44 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:04:59 +0000 (00:04 +1100)
commit0f4ef8a3bf784f250abc7d0155ae4e9fa22d8210
treea8b7a15932752b7181a8b03ed1cb26604f292ad3
parent0f54bddefe7f5e4c98bea6f945ebdf85d1c44117
selftests/powerpc: Add test for real address error handling

Add test for real address or control memory address access
error handling, using NX-GZIP engine.

The error is injected by accessing the control memory address
using illegal instruction, on successful handling the process
attempting to access control memory address using illegal
instruction receives SIGBUS.

Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220107141428.67862-2-ganeshgr@linux.ibm.com
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/mce/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/mce/inject-ra-err.c [new file with mode: 0644]
tools/testing/selftests/powerpc/mce/vas-api.h [new symlink]