Re: Exact context tracking (Re: [PATCH v10 00/10] x86: Quiesce text_poke() IPIs)
From: Andy Lutomirski
Date: Fri Dec 04 2026 - 16:30:19 EST
On Fri, Dec 4, 2026, at 12:19 PM, Valentin Schneider wrote:
>
> Wrt tracking deferred work, playing with the CR3 RMW sequence has made
> me really appreciate having a single, unified & idempotent sequence.
> You don't have to track anything, you don't have to care about nested
> NMIs, you just execute the same thing every time you enter the kernel.
Do make sure you don't miss the speculative fill part: even sticking a
full flush as the first instruction of every single entry may be
insufficient if a kernel page table has been freed in the interim.
--Andy
>
> Yes it's expensive, but if it's limited to NOHZ_FULL CPUs then who cares.
>
> So yeah I'm going back to fiddling with context_tracking, but it'll be a
> bit different than last time.
>
>> --Andy