kvm_mips_build_vcpu_run(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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