Re: [PATCH v2 14/18] powerpc: Define set_thread_used_vas()

2017-11-09 Thread Michael Ellerman
Sukadev Bhattiprolu writes: > diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c > index d861fcd..cb5f108 100644 > --- a/arch/powerpc/kernel/process.c > +++ b/arch/powerpc/kernel/process.c > @@ -1234,17 +1234,17 @@ struct task_struct *__switch_to(struct task_struct > *pre

Re: [PATCH v2 14/18] powerpc: Define set_thread_used_vas()

2017-11-06 Thread Nicholas Piggin
On Fri, 6 Oct 2017 19:28:14 -0700 Sukadev Bhattiprolu wrote: > A CP_ABORT instruction is required in processes that have mapped a VAS > "paste address" with the intention of using COPY/PASTE instructions. > But since CP_ABORT is expensive, we want to restrict it to only processes > that use/inte

[PATCH v2 14/18] powerpc: Define set_thread_used_vas()

2017-10-06 Thread Sukadev Bhattiprolu
A CP_ABORT instruction is required in processes that have mapped a VAS "paste address" with the intention of using COPY/PASTE instructions. But since CP_ABORT is expensive, we want to restrict it to only processes that use/intend to use COPY/PASTE. Define an interface, set_thread_used_vas(), that