Re: [PATCH 0/4] sched/core: Core scheduling beyond SMT siblings
From: Peter Zijlstra
Date: Fri Dec 04 2026 - 19:09:15 EST
On Thu, Dec 03, 2026 at 10:13:03PM +0000, Ahmed Abdelraoof wrote:
> From: Ahmed Abdelraoof <araoof@xxxxxxxxxx>
>
> Core scheduling isolates tasks that distrust each other by never
> running them simultaneously on CPUs that share microarchitectural
> state. Today the isolation unit is hard-wired to the SMT sibling set.
>
> New processors can share an L2 cache between pair of cores while
> providing no SMT at all. There, the SMT sibling set reduces to a
> single CPU, so core scheduling has nothing to isolate, while the
> shared L2 exposes the same class of side channel one level up.
>
> This series generalizes core scheduling to a configurable isolation
> unit and adds support for cluster unit, which on x86 is the set of CPUs
> sharing an L2. Two side-channel classes motivate this:
>
> - Cache-based channels (Prime+Probe and friends): if an attacker and
> a victim can co-run on cores sharing an L2 between a small number of
> cores, a reliable cross-core channel exists. Restricting each cluster
> to same-cookie co-residency removes that concurrent precondition.
> Attacks that span a context switch remain out of scope, as they are
> for SMT core scheduling.
>
> - Frequency-domain channels: one core's activity modulates the clock
> the whole cluster observes, leaking information without any cache
> traffic. This series does not attempt to mitigate that class; it is
> future work.
And next you want L3? :-(
Why are we worried about this L2 thing?