kvm_mips_build_ret_to_host(9)
π NAME π
okay bestie, welcome to the kvm_mips_build_ret_to_host page from the Kernel API Manual β yes, it's a whole manual page and yes, it's giving "niche MIPS KVM lore" π
short version: it assembles the code that takes you back to the host. slay.
β¨ SYNOPSIS β¨
void * kvm_mips_build_ret_to_host (void *addr );
π ARGUMENTS π
addrβ the address where you wanna start writing code. that's it. that's the whole argument. iconic.
π¦ DESCRIPTION π¦
so basically, this function assembles the code that handles the return trip from the guest exit handler β that's kvm_mips_handle_exit β back to the host. aka back to the caller of the vcpu_run function that got generated by kvm_mips_build_vcpu_run. it's the "okay we're done here, take me home" machinery, lowkey essential π«Ά
no cap, that's the whole vibe: you're building the exit-to-host path, one assembly chunk at a time.
π₯ RETURN π₯
it returns the next address after the end of the written function β so you know exactly where the freshly assembled code stops. very "here's where I left off, bestie" of it π
π SEE ALSO π
- Kernel file
./arch/mips/kvm/entry.c 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_exception(9)kvm_mips_build_exit(9)kvm_mips_build_ret_from_exit(9)kvm_mips_build_ret_to_guest(9)
and that's the page, bestie π it's from ./arch/mips/kvm, dated October 2026, in the Kernel API Manual β go forth and assemble your return path, you got this πβ¨
π¦ 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