[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aOVXWeBkCO7rUDvX@slm.duckdns.org>
Date: Tue, 7 Oct 2025 08:09:29 -1000
From: Tejun Heo <tj@...nel.org>
To: Andrea Righi <arighi@...dia.com>
Cc: David Vernet <void@...ifault.com>, Changwoo Min <changwoo@...lia.com>,
linux-kernel@...r.kernel.org, sched-ext@...ts.linux.dev
Subject: Re: [PATCH 2/4] sched_ext: Add scx_bpf_task_set_slice() and
scx_bpf_task_set_dsq_vtime()
On Tue, Oct 07, 2025 at 11:34:56AM +0200, Andrea Righi wrote:
> Hi Tejun,
>
> On Mon, Oct 06, 2025 at 03:51:45PM -1000, Tejun Heo wrote:
> > With the planned hierarchical scheduler support, sub-schedulers will need to
> > be verified for authority before being allowed to modify task->scx.slice and
> > task->scx.dsq_vtime. Add scx_bpf_task_set_slice() and
> > scx_bpf_task_set_dsq_vtime() which will perform the necessary permission
> > checks.
> >
> > Root schedulers can still directly write to these fields, so this doesn't
> > affect existing schedulers.
> >
> > Signed-off-by: Tejun Heo <tj@...nel.org>
> > ---
>
> Maybe provide __COMPAT_scx_bpf_task_set_slice() and
> __COMPAT_scx_bpf_task_set_dsq_vtime(), but we can do this later.
Ah, right. Will do.
Thanks.
--
tejun
Powered by blists - more mailing lists