is_eva_am_mapped(9)
π is_eva_am_mapped β a Kernel API Manual moment π
okay bestie so you've wandered into the is_eva_am_mapped(9) page β that's the Kernel API Manual btw, we're in kernel-land now π β and honestly? it's giving "tiny function, big responsibilities." Let's get into it.
β¨ NAME β¨
is_eva_am_mapped β literally just: figure out whether an access mode is mapped. that's the whole vibe check. π¦
πΈ SYNOPSIS πΈ
bool is_eva_am_mapped (struct kvm_vcpu *vcpu , unsigned int am , bool eu
);
three args, one bool back. clean. no notes. π
π ARGUMENTS π
vcpuβ the KVM VCPU state. yes, that VCPU. the main character of this whole operation πamβ a 3-bit encoded access mode. three bits! tiny! iconic! π§euβ whether the segment becomes unmapped and uncached whenStatus.ERL=1. two things at once, she's multitasking π
π«Ά DESCRIPTION π«Ά
so what it does is: it decodes am to find whether it encodes a mapped segment for the current VCPU state. like, context matters, bestie β it's not a one-size-fits-all answer π
and where necessary, eu and the actual instruction causing the fault get taken into account too, to make the decision. so it's not just vibes β it's looking at the real faulting instruction. no cap. π₯
π RETURN π
returns whether the VCPU faulted on a TLB mapped address. that's it. that's the answer. π
πΊ SEE ALSO πΊ
everything lives in the kernel file ./arch/mips/kvm/vz.c β go read it, iykyk π β and also these absolute legends:
kvm_vz_should_use_htimer(9)_kvm_vz_restore_stimer(9)_kvm_vz_restore_htimer(9)kvm_vz_restore_timer(9)kvm_vz_acquire_htimer(9)_kvm_vz_save_htimer(9)kvm_vz_save_timer(9)kvm_vz_lose_htimer(9)is_eva_access(9)kvm_vz_gva_to_gpa(9)kvm_vz_badvaddr_to_gpa(9)kvm_trap_vz_handle_cop_unusable(9)kvm_trap_vz_handle_msa_disabled(9)kvm_vz_resize_guest_vtlb(9)
likeβ¦ a whole friend group of timer functions and trap handlers. the way they all show up together π«Άβ¨
π reminder thateuis about the segment becoming unmapped and uncached whenStatus.ERL=1β that's a real hardware behaviour thing, not just a cute flag name. don't sleep on it.
and that's the page, bestie!! π source vibes come from ./arch/mips/kvm, dated October 2026, and this whole manual page is filed under is_eva_am_mapped(9) β slay, go map some access modes, ily, bye! ππ¦πΈ
π¦ 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