Re: Exact context tracking (Re: [PATCH v10 00/10] x86: Quiesce text_poke() IPIs)

From: Valentin Schneider

Date: Fri Dec 04 2026 - 15:19:40 EST


On 03/12/26 21:11, Andy Lutomirski wrote:
> Anyone want to try this? Valentin? This is a big project. Also, Valentin, there is a lot in here that needs to be dealt with one way or another in any scheme that defers kernel TLB flushes or text_poke serialization.
>

Heh, I need to digest all of that; some of it sounds like what I already
had in the context_tracking version of this.

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.

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