kvm_pgtable_stage2_pte_prot(9)
π kvm_pgtable_stage2_pte_prot(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the arm64 KVM page-table mines, you've got a raw kvm_pte_t in your hand, and you're like "what even are the perms on this thing??" β that's it, that's the whole function π«Ά
π NAME π
kvm_pgtable_stage2_pte_prot β literally just retrieves the protection attributes of a stage-2 Page-Table Entry. that's the vibe check. no cap π
β¨ SYNOPSIS β¨
enum kvm_pgtable_prot kvm_pgtable_stage2_pte_prot (kvm_pte_t pte );
πΈ ARGUMENTS πΈ
pteβ a Page-table entry. that's the whole input, she's low maintenance π
π RETURN π
the protection attributes of the page-table entry, handed back to you in the enum kvm_pgtable_prot format. slay β¨
π¦ SEE ALSO π¦
okay bestie this list is long but I'm not skipping a single one, we don't do that here π
first the kernel file:
./arch/arm64/include/asm/kvm_pgtable.h
and then the whole friend group:
struct kvm_pgtable_mm_ops(9)enum kvm_pgtable_stage2_flags(9)enum kvm_pgtable_prot(9)enum kvm_pgtable_walk_flags(9)struct kvm_pgtable_walker(9)struct kvm_pgtable(9)kvm_pgtable_hyp_init(9)kvm_pgtable_hyp_destroy(9)kvm_pgtable_hyp_map(9)kvm_pgtable_hyp_unmap(9)kvm_get_vtcr(9)kvm_pgtable_stage2_pgd_size(9)__kvm_pgtable_stage2_init(9)kvm_pgtable_stage2_destroy(9)kvm_pgtable_stage2_destroy_range(9)kvm_pgtable_stage2_destroy_pgd(9)kvm_pgtable_stage2_free_unlinked(9)kvm_pgtable_stage2_create_unlinked(9)kvm_pgtable_stage2_map(9)kvm_pgtable_stage2_annotate(9)kvm_pgtable_stage2_unmap(9)kvm_pgtable_stage2_wrprotect(9)kvm_pgtable_stage2_mkyoung(9)kvm_pgtable_stage2_test_clear_young(9)kvm_pgtable_stage2_relax_perms(9)kvm_pgtable_stage2_split(9)kvm_pgtable_walk(9)kvm_pgtable_get_leaf(9)kvm_pgtable_hyp_pte_prot(9)kvm_tlb_flush_vmid_range(9)
periodt π₯
mwah π that's the whole page β shoutout to ./arch/arm64/include/asm for hosting this queen, and stamp it October 2026 in your calendar because that's when this little gem is dated. bye bestie, go read some page tables π§ββοΈβ¨
π¦ 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