Re: [PATCH] arch/arm: enable task isolation functionality

From: Chris Metcalf
Date: Mon Sep 26 2016 - 13:32:17 EST


On 9/22/2016 5:54 PM, Francis Giraldeau wrote:
This patch is a port of the task isolation functionality to the arm 32-bit
architecture. The task isolation needs an additional thread flag that
requires to change the entry assembly code to accept a bitfield larger than
one byte. The constants _TIF_SYSCALL_WORK and _TIF_WORK_MASK are now
defined in the literal pool. The rest of the patch is straightforward and
reflects what is done on other architectures.

Signed-off-by: Francis Giraldeau<francis.giraldeau@xxxxxxxxx>
---
arch/arm/Kconfig | 1 +
arch/arm/include/asm/thread_info.h | 8 ++++++--
arch/arm/kernel/entry-common.S | 15 ++++++++++-----
arch/arm/kernel/ptrace.c | 10 ++++++++++
arch/arm/kernel/signal.c | 12 +++++++++++-
arch/arm/kernel/smp.c | 4 ++++
arch/arm/mm/fault.c | 9 ++++++++-
tools/testing/selftests/task_isolation/isolation.c | 14 ++++++++++----
8 files changed, 60 insertions(+), 13 deletions(-)

Thanks! I've merged this into the dataplane tree and will plan to try
to keep it updated (buildable at least) with any further changes.

--
Chris Metcalf, Mellanox Technologies
http://www.mellanox.com