kvm_pgd_alloc(9)
π NAME π
kvm_pgd_alloc β bestie, this is the one that allocates and initialises a KVM GPA page directory β¨
π¦ SYNOPSIS π¦
pgd_t * kvm_pgd_alloc (void );
π ARGUMENTS π
voidβ literally no arguments, she takes nothing, she needs nothing, she simply arrives π
πΈ DESCRIPTION πΈ
okay so picture this: you need a blank KVM GPA page directory β a PGD β and this function is the one who hands it to you, freshly allocated, already initialised, no cap π
what's it for? representing guest physical to host physical page mappings. that's the whole vibe. it's giving "translator between two worlds" and honestly? iconic π
β RETURN β
- on the slay side: a pointer to your brand-new KVM GPA page directory π«Ά
- on the not-so-slay side:
NULLwhen the allocation fails π (yes, she can fail, always check, fr fr)
π SEE ALSO π
kernel file ./arch/mips/kvm/mmu.c is right there holding it down, plus the whole friend group:
kvm_pgd_init(9)kvm_mips_walk_pgd(9)kvm_mips_flush_gpa_pt(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)
iykyk π«
and that's the whole page, bestie β brought to you from the kvm_pgd_alloc(9) section of the Kernel API Manual, filed under ./arch/mips/kvm, dated October 2026 π go forth and allocate responsibly, mwah ππ§
π¦ 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