kvm_mips_build_vcpu_run(9)
β¨ kvm_mips_build_vcpu_run(9) β¨
okay bestie, this one is from the Kernel API Manual and it's literally all about kvm_mips_build_vcpu_run(9) β the little assembly helper that gets a guest VCPU ready to run πββοΈπ¨ no cap.
πΈ NAME πΈ
kvm_mips_build_vcpu_run β assemble the function that starts running a guest VCPU π
π SYNOPSIS π
void * kvm_mips_build_vcpu_run (void *addr );
π¦ ARGUMENTS π¦
addrβ the address where you wanna start writing code, bestie βοΈβ¨
π DESCRIPTION π
So what this does is assemble the start of the vcpu_run function β the one that actually runs a guest VCPU π. And the function it builds conforms to this prototype, exactly:
int vcpu_run(struct kvm_vcpu *vcpu);
The exit from the guest and the return back to the caller? That's not handled here, bestie β it's handled by the code generated by kvm_mips_build_ret_to_host. iykyk π«Ά
β RETURN β
It returns the next address after the end of the written function π β like, where you'd keep writing next.
π SEE ALSO π
Kernel file ./arch/mips/kvm/entry.c β plus these iconic little functions:
kvm_mips_entry_setup(9)build_set_exc_base(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)kvm_mips_build_ret_to_host(9)
fr fr, don't sleep on the SEE ALSO list β it's giving "the whole MIPS KVM entry squad" ππ
and that's the whole page, bestie πβ¨ this one lives in ./arch/mips/kvm and it's dated October 2026 β mwah, slay, 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