Re: [PATCH] x86/fred: Add this_cpu_fred_sp() and export it for KVM
From: Dave Hansen
Date: Tue Nov 24 2026 - 10:52:47 EST
On 11/23/26 17:58, Sohil Mehta wrote:
> FRED adds fields to the VMCS host-state area for the stack pointers of
> stack levels 1 to 3. The CPU loads these pointers on every VM exit to
> ensure a valid FRED event delivery context is established immediately.
> These values are per CPU, so KVM has to refresh them each time a vCPU is
> loaded onto a CPU.
Sohil,
We can take cleanups that both make sense for non-KVM FRED code and are
_described_ that way. We can't add dead code, or take things that have
changelogs for code that's not in the tree.
In other words, please write a changelog and send code that has nothing
immediate to do with KVM. If that's not possible for a given patch,
that's a pretty good clue it's not a cleanup and can't be merged early.
Anything going in early has to stand on its own, please.