kvm_mips_build_exception(9)
π kvm_mips_build_exception(9) β like, the Kernel API Manual page you didn't know you needed
okay bestie, buckle up π this is a kernel API manual page for kvm_mips_build_exception(9) and honestly? it's giving "small function, main character energy." we're talking assembly-level exception vectors for MIPS guests here. iykyk π
β¨ NAME β¨
kvm_mips_build_exception β assemble the first level guest exception handler. that's it, that's the whole vibe. no cap π«Ά
πΈ SYNOPSIS πΈ
void * kvm_mips_build_exception (void *addr , void *handler );
literally just two pointers in, one pointer out. the way that signature just works π₯
π¦ ARGUMENTS π¦
addrβ the address where you start writing code. like, your canvas, your blank page, your little spot in memory π¨handlerβ the address of the common handler, and bestie listen: it has to be within range ofaddr. that's the rule, don't fight it π
π DESCRIPTION π
so what does this actually do? it assembles exception vector code for guest execution. the generated vector will branch to the common exception handler that was generated by kvm_mips_build_exit. that's the whole lore β¨
think of it as: you bring the addr, you bring the handler, and it hands you back a freshly minted exception vector that knows exactly where to go when things go sideways. teamwork, honestly π«Ά
π RETURN π
the next address after the end of the written function. so you know exactly where to keep writing next. very demure, very mindful, very "here's your pointer back" π
π§ SEE ALSO π§
kernel file ./arch/mips/kvm/entry.c plus the whole little friend group π:
kvm_mips_entry_setup(9)build_set_exc_base(9)kvm_mips_build_vcpu_run(9)kvm_mips_build_enter_guest(9)kvm_mips_build_tlb_refill_exception(9)kvm_mips_build_exit(9)kvm_mips_build_ret_from_exit(9)kvm_mips_build_ret_to_guest(9)kvm_mips_build_ret_to_host(9)
go read them, they all ate π
π friendly reminder:handlerneeds to be within range ofaddr. i'm not being dramatic, i'm being accurate. check your addresses bestie, please π
that's the page!! brought to you from ./arch/mips/kvm, dated October 2026 β slay, periodt, see you in the next exception vector ππ
π¦ 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