linux_old1/tools/testing/selftests/powerpc/tm
Rashmica Gupta 5f337e3e5b selftests/powerpc: Add test to check if VSRs are corrupted
When a transaction is aborted, VSR values should rollback to the
checkpointed values before the transaction began. VSRs used elsewhere in
the kernel during a transaction, or while the transaction is suspended
should not affect the checkpointed values.

Prior to the bug fix in commit d31626f70b ("powerpc: Don't corrupt
transactional state when using FP/VMX in kernel") when VMX was requested
by the kernel the .vr_state (which held the checkpointed state of VSRs
before the transaction) was overwritten with the current state from
outside the transation. Thus if the transaction did not complete, the
VSR values would be "rolled back" to potentially incorrect values.

Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-12-14 20:41:50 +11:00
..
.gitignore selftests/powerpc: Add test to check if VSRs are corrupted 2015-12-14 20:41:50 +11:00
Makefile selftests/powerpc: Add test to check if VSRs are corrupted 2015-12-14 20:41:50 +11:00
tm-resched-dscr.c selftests/powerpc: Skip tm-resched-dscr if we don't have TM 2015-12-14 20:41:48 +11:00
tm-signal-msr-resv.c selftests/powerpc: Add TM signal return test 2015-12-14 20:41:48 +11:00
tm-signal-stack.c selftests/powerpc: Add TM signal with invalid stack test 2015-12-14 20:41:49 +11:00
tm-syscall-asm.S selftests/powerpc: Add transactional syscall test 2015-04-11 20:49:20 +10:00
tm-syscall.c selftests/powerpc: Move TM helpers into tm.h 2015-12-14 20:41:48 +11:00
tm-vmxcopy.c selftests/powerpc: Add test to check if VSRs are corrupted 2015-12-14 20:41:50 +11:00
tm.h selftests/powerpc: Move TM helpers into tm.h 2015-12-14 20:41:48 +11:00