kvm_riscv_vcpu_mmio_store(9)
πΎ kvm_riscv_vcpu_mmio_store(9) πΎ
okay so bestie, welcome to the Kernel API Manual β¨ β this little page is all about kvm_riscv_vcpu_mmio_store, and honestly? it's giving "the emulator that could" π
. sit down, grab a π, and let's get into it.
πΈ NAME πΈ
kvm_riscv_vcpu_mmio_store β Emulate MMIO store instruction π
like, it literally pretends to be an MMIO store for you. main character energy fr fr.
β¨ SYNOPSIS β¨
int kvm_riscv_vcpu_mmio_store (struct kvm_vcpu *vcpu , struct kvm_run
*run , gpa_t fault_addr , unsigned long htinst );
four things go in, one int comes out. no cap. π«Ά
π¦ ARGUMENTS π¦
vcpuβ The VCPU pointer π this is your vcpu bestie, the whole reason we're hererunβ The VCPU run struct containing the mmio data π¦ it's carrying the mmio teafault_addrβ Guest physical address to store π the exact spot the store wants to landhtinstβ Transformed encoding of the store instruction π₯ the instruction, but make it transformed
π DESCRIPTION π
so here's the vibe check on what it hands back to you:
- returns > 0 to continue run-loop π keep it moving, bestie
- returns 0 to exit run-loop and handle in user-space π the kernel's stepping out so user-space can take over
- returns < 0 to report failure and exit run-loop π something went wrong and we're bouncing
β οΈ fr fr pay attention to the sign of that return value β> 0,0, and< 0are three totally different moods and you gotta know which one you're in π
π§ SEE ALSO π§
Kernel file ./arch/riscv/kvm/vcpu_insn.c β go read it, iykyk π
and the whole friend group:
kvm_riscv_vcpu_wfi(9)kvm_riscv_vcpu_csr_return(9)kvm_riscv_vcpu_virtual_insn(9)kvm_riscv_vcpu_mmio_load(9)kvm_riscv_vcpu_mmio_return(9)
they're all linked, they all slay, go say hi π
so that's the whole page, bestie!! brought to you by the lovely humans over at ./arch/riscv/kvm, dated October 2026 β mwah, love that for us πβ¨π
π¦ 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