handle_removed_pt(9)
π NAME π
okay so bestie, this is handle_removed_pt from the Kernel API Manual β it handles a page table removed from the TDP structure. periodt. β¨
β¨ SYNOPSIS β¨
void handle_removed_pt (struct kvm *kvm , tdp_ptep_t pt , bool shared );
π ARGUMENTS π
kvmβ the kvm instance, the main character here πptβ the page removed from the paging structuresharedβ 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. no cap, that's important π«Ά
π DESCRIPTION π
Given a page table that has been removed from the TDP paging structure, this function iterates through the page table to clear SPTEs and free child page tables. literally doing the cleanup π
Note that pt is passed in as a tdp_ptep_t, but it does not need RCU protection. Since this thread removed it from the paging structure, this thread will be responsible for ensuring the page is freed. Hence the early rcu_dereferences in the function. iykyk β
π SEE ALSO π
- Kernel file
./arch/x86/kvm/mmu/tdp_mmu.c tdp_mmu_unlink_sp(9)__handle_changed_spte(9)
okay bestie, that's the whole page β slay responsibly π
source/version vibes: ./arch/x86/kvm/mmu, October 2026, handle_removed_pt(9) πβ¨
π¦ 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