[PATCH v2 3/3] powerpc/tm: Add tm-poison test

2019-09-03 Thread gromero
From: Gustavo Romero Add TM selftest to check if FP or VEC register values from one process can leak into another process when both run on the same CPU. Signed-off-by: Gustavo Romero Signed-off-by: Michael Neuling --- tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/testing/selfte

[PATCH v2 2/3] powerpc/tm: Fix restoring FP/VMX facility incorrectly on interrupts

2019-09-03 Thread gromero
From: Gustavo Romero When in userspace and MSR FP=0 the hardware FP state is unrelated to the current process. This is extended for transactions where if tbegin is run with FP=0, the hardware checkpoint FP state will also be unrelated to the current process. Due to this, we need to ensure this ha

[PATCH v2 1/3] powerpc/tm: Fix FP/VMX unavailable exceptions inside a transaction

2019-09-03 Thread gromero
From: Gustavo Romero When we take an FP unavailable exception in a transaction we have to account for the hardware FP TM checkpointed registers being incorrect. In this case for this process we know the current and checkpointed FP registers must be the same (since FP wasn't used inside the transa