__handle_changed_spte(9)
π __handle_changed_spte(9) π
ok so bestie, welcome to the __handle_changed_spte(9) page β it lives in the Kernel API Manual, and it's literally all about doing the bookkeeping when an SPTE changes. no cap, that's the whole vibe. π¦
β¨ SYNOPSIS β¨
int __handle_changed_spte (struct kvm *kvm , struct kvm_mmu_page *sp ,
gfn_t gfn , u64 old_spte , u64 new_spte , int level , bool shared );
she's giving seven parameters and a dream π
πΈ ARGUMENTS πΈ
kvmβ the kvm instance in question, the main character of this whole operation πspβ the page table that the SPTE is chilling inside ofgfnβ the base GFN that was mapped by the SPTE, iykykold_spteβ the value of the SPTE before the change (the before pic πΈ)new_spteβ the value of the SPTE after the change (the glow-up β¨)levelβ the level of the PT that the SPTE is part of in the paging structuresharedβ okay so this one's important: this operation may not be running under the exclusive use of the MMU lock, and the operation must synchronize with other threads that might be modifying SPTEs. so like, be careful, fr fr π
π DESCRIPTION π
Handle the bookkeeping that might result from the modification of a SPTE. that's it, that's the job. π«Ά
not me about to say the quiet part out loud: dirty logging updates are handled in common code, not here β seemake_spteandfast_pf_fix_direct_spte. so don't come looking for them in this function, bestie. π
π₯ SEE ALSO π₯
- Kernel file
./arch/x86/kvm/mmu/tdp_mmu.c tdp_mmu_unlink_sp(9)handle_removed_pt(9)
and that's the page! π this whole thing comes to you from ./arch/x86/kvm/mmu, dated October 2026, and it's signed __handle_changed_spte(9) β slay, go forth and handle those SPTE changes responsibly ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms