Re: [PATCH V2 1/4] x86/resctrl: Use IPI instead of task_work_add() to update PQR_ASSOC MSR

2021-01-07 Thread Reinette Chatre
Hi Borislav, On 1/6/2021 3:19 AM, Borislav Petkov wrote: On Thu, Dec 17, 2020 at 02:31:18PM -0800, Reinette Chatre wrote: +#ifdef CONFIG_SMP +static void update_task_closid_rmid(struct task_struct *t) +{ + if (task_curr(t)) + smp_call_function_single(task_cpu(t), _update_tas

Re: [PATCH V2 1/4] x86/resctrl: Use IPI instead of task_work_add() to update PQR_ASSOC MSR

2021-01-06 Thread Borislav Petkov
On Thu, Dec 17, 2020 at 02:31:18PM -0800, Reinette Chatre wrote: > +#ifdef CONFIG_SMP > +static void update_task_closid_rmid(struct task_struct *t) > +{ > + if (task_curr(t)) > + smp_call_function_single(task_cpu(t), _update_task_closid_rmid, > +

[PATCH V2 1/4] x86/resctrl: Use IPI instead of task_work_add() to update PQR_ASSOC MSR

2020-12-17 Thread Reinette Chatre
From: Fenghua Yu Currently when moving a task to a resource group the PQR_ASSOC MSR is updated with the new closid and rmid in an added task callback. If the task is running the work is run as soon as possible. If the task is not running the work is executed later in the kernel exit path when the