kvm_handle_cp_32(9)
β¨ kvm_handle_cp_32(9) β¨
okay so bestie, welcome to kvm_handle_cp_32(9) π
this is a page from the Kernel API Manual and it's basically the little handler that deals with a mrc/mcr trap on a guest CP14/CP15 access π like, the guest went poking at coprocessor registers, and this function is the one who answers the door πβ¨
πΈ SYNOPSIS πΈ
int kvm_handle_cp_32 (struct kvm_vcpu *vcpu , struct sys_reg_params
*params , const struct sys_reg_desc *global , size_t nr_global );
that's the whole signature, no cap β int coming back, four args going in π«Ά
π ARGUMENTS π
vcpuβ The VCPU pointer π like, the actual virtual CPU we're doing all this for.paramsβ astruct sys_reg_paramsπ¦ the details of the access, packaged up cute.globalβ astruct sys_reg_descβ the descriptor situation.nr_globalβ size of the global array π literally just how many entriesglobalhas, iykyk.
π SEE ALSO π
- Kernel file
./arch/arm64/kvm/sys_regs.cβ that's where the magic lives, fr fr π₯ kvm_handle_cp_64(9)kvm_handle_cp10_id(9)kvm_emulate_cp15_id_reg(9)emulate_sys_reg(9)kvm_reset_sys_regs(9)kvm_handle_sys_reg(9)
all the sibling functions, the whole friend group honestly π
and that's the page!! mwah π this one's sourced from ./arch/arm64/kvm, dated October 2026 β iconic, no notes, periodt π§ββοΈπ«
π¦ 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