kvm_mips_bu...ll_exception(9)
β¨ kvm_mips_build_tlb_refill_exception(9) β¨
okay bestie, so this page is literally called kvm_mips_bu...ll_exception(9) (yes the title is truncated with the ..., that's just how it is, no cap) and it lives in the Kernel API Manual π
β the kernel API manual, iykyk. It's all about building the TLB refill handler, and honestly? iconic.
π NAME π
kvm_mips_build_tlb_refill_exception β assemble TLB refill handler π¦
πΈ SYNOPSIS πΈ
void * kvm_mips_build_tlb_refill_exception (void *addr , void *handler
);
like... look at that signature. so clean. π
β ARGUMENTS β
addrβ the address where you start writing code. that's the spot, bestie, that's where the pen goes ποΈβ¨handlerβ the address of the common handler, and heads up: it's gotta be within range ofaddr. not just vibes-adjacent, actually within range π
π DESCRIPTION π
It assembles the TLB refill exception fast path handler for guest execution πββοΈπ¨. Like, that's the whole thing. It builds it. For the guest. Fast path. periodt.
π RETURN π
Returns the next address after the end of the written function β so you know exactly where the function stops, which is very main character of it π«Ά
π SEE ALSO π
Bestie, check out the kernel file ./arch/mips/kvm/entry.c β it's giving source-of-truth energy:
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_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)
all nine, listed, nothing skipped, we love a complete reference list π β¨
ok that's the whole page, go build your handler π
and finally, the cute little sign-off corner: this one's from ./arch/mips/kvm, dated October 2026, and the page itself is kvm_mips_bu...ll_exception(9) π bye bestie, slay your exceptions π¦
π¦ 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