kvm_mips_flush_gpa_pt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kvm_mips_flush_gpa_pt(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so picture this: you're deep in the MIPS KVM code, it's the Kernel API Manual, and this one little function is out here doing the most β€” it's kvm_mips_flush_gpa_pt, and it's genuinely iconic.


✨ NAME ✨

kvm_mips_flush_gpa_pt β€” flushes a whole range of guest physical addresses. that's it, that's the vibe, it's giving "clean slate" energy πŸ§ΉπŸ’–


🌸 SYNOPSIS 🌸

bool kvm_mips_flush_gpa_pt (struct kvm *kvm , gfn_t start_gfn , gfn_t end_gfn );

yeah she takes three things and hands you back a bool. short king behavior, no cap πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • kvm β€” the KVM pointer. your main character struct, literally the whole world of this VM 🫢
  • start_gfn β€” the guest frame number of the first page in the GPA range you wanna flush. where the party starts πŸŽ‰
  • end_gfn β€” the guest frame number of the last page in the GPA range. where it wraps up. inclusive, she's generous like that 🌈

πŸ’œ DESCRIPTION πŸ’œ

so what does it actually do?? it flushes a range of GPA mappings right outta the GPA page tables. bye bye mappings, we don't know them anymore ✨

⚠️ bestie, IMPORTANT: the caller must hold the kvm->mmu_lock spinlock. like, you literally have to. this is not a suggestion, it's the rules. hold the lock, or don't come to the function πŸ’€πŸ”’

πŸ”₯ RETURN πŸ”₯

it returns whether it's safe to remove the top level page directory β€” which is only true because all the lower levels have already been removed. so like, it's telling you "yeah the whole tree underneath is gone, you can yeet the top now" πŸŒ³βž‘οΈπŸ—‘οΈ


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./arch/mips/kvm/mmu.c β€” that's the home turf, the source of truth 🏠

and the whole friend group, fr fr:


anyway, that's the whole page, mwah πŸ’‹ this little number lives over in ./arch/mips/kvm, and the version we're serving you is dated October 2026 β€” October 2026 said "let me serve cunt" and it ATE πŸ“πŸ§šβ€β™€οΈπŸ’– no notes, periodt.

πŸ“¦ where this page comes from