kvm_trap_vz...msa_disabled(9)
π kvm_trap_vz...msa_disabled(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a whole MIPS/KVM situation and it's honestly kind of iconic. Let's get into it π«Ά
πΈ NAME πΈ
kvm_trap_vz_handle_msa_disabled β the guest was out here using MSA while it's disabled in the root. not me catching you in 4K π
β¨ SYNOPSIS β¨
int kvm_trap_vz_handle_msa_disabled (struct kvm_vcpu *vcpu );
like yes, that's the whole signature, she's short and she knows it π
π ARGUMENTS π
vcpuβ the virtual CPU context. literally the entire vibe of the virtual CPU, wrapped up in one pointer π¦
π DESCRIPTION π
so this function handles the moment when the guest tries to use MSA while it's disabled in the root context. that's it, that's the job. guest reaches for MSA, root says "disabled", and this bad boy is the one standing there like excuse me? π
the way it just cleanly intercepts that situation? main character energy fr fr π
π₯ RETURN π₯
returns a value telling you whether to resume the host or the guest β specifically RESUME_HOST or RESUME_GUEST. pick your fighter, the kernel wants an answer β
π SEE ALSO π
the whole friend group, no cap β all of these live in the kernel file ./arch/mips/kvm/vz.c π
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)is_eva_am_mapped(9)kvm_vz_gva_to_gpa(9)kvm_vz_badvaddr_to_gpa(9)kvm_trap_vz_handle_cop_unusable(9)kvm_vz_resize_guest_vtlb(9)
ngl bestie the timer functions alone are a whole saga, go read them, iykyk π§
and that's the page! π brought to you by the lovely folks over in ./arch/mips/kvm, dated October 2026 β mwah, ilysm, now go read the source πβ¨π
π¦ 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