kvm_mips_mkclean_gpa_pt(9)
π¦ kvm_mips_mkclean_gpa_pt(9) β the Kernel API Manual moment π¦
okay so bestie, we're in the kvm_mips_mkclean_gpa_pt(9) page rn, and it's literally about making guest physical addresses clean β¨ like yes we're doing laundry for memory, periodt.
π NAME π
kvm_mips_mkclean_gpa_pt β Make a range of guest physical addresses clean.
no cap, that's the whole vibe. a whole range of GPAs, freshly laundered π§Ί
β¨ SYNOPSIS β¨
int kvm_mips_mkclean_gpa_pt (struct kvm *kvm , gfn_t start_gfn , gfn_t end_gfn );
it's giving "one function, three arguments, zero chill" π
π ARGUMENTS π
kvmβ the KVM pointer. your main character struct, the whole reason we're here π«Άstart_gfnβ the guest frame number of the first page in the GPA range we're flushing. where the party starts πend_gfnβ the guest frame number of the last page in the GPA range we're flushing. where the party ends, sadly π
like, inclusive range energy. start_gfn to end_gfn, that's the assignment π₯
πΈ DESCRIPTION πΈ
so what does it actually do?? it makes a range of GPA mappings clean so that guest writes will fault and trigger dirty page logging. like, intentionally making them fault. iconic behavior honestly π
β οΈ the caller must hold the kvm->mmu_lock spinlock. not optional, bestie. not "if you feel like it". HOLD. THE. LOCK. π this is the no-cap rule of the whole page.
β RETURN β
it returns whether any GPA mappings were modified β and like, that matters because it means derived mappings (that's GVA page tables & TLB enties π) need to be invalidated. so yeah, true-ish means "girl go invalidate things" π
(also yes, the original page says "enties". we're respecting the typo, it's canon now π)
π SEE ALSO π
- the kernel file
./arch/mips/kvm/mmu.cπ kvm_pgd_init(9)kvm_pgd_alloc(9)kvm_mips_walk_pgd(9)kvm_mips_flush_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)
whole friend group fr fr π«Ά read them all, iykyk
and that's the page!! πΈ mwah π source: ./arch/mips/kvm, dated October 2026, and we're signing off from kvm_mips_mkclean_gpa_pt(9) β stay clean, stay locked, stay slaying β¨π
π¦
π¦ 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