kvm_mips_flush_gpa_pt(9)
π 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:
kvm_pgd_init(9)kvm_pgd_alloc(9)kvm_mips_walk_pgd(9)kvm_mips_mkclean_gpa_pt(9)kvm_arch_mmu_enable_log_dirty_pt_masked(9)_kvm_mips_map_page_fast(9)kvm_mips_map_page(9)kvm_mips_migrate_count(9)
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
- 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