kvm_mips_set_count_resume(9)
π kvm_mips_set_count_resume π
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy here π β and today's main character is a tiny little function that just wants to update a register for you. no cap.
β¨ NAME β¨
kvm_mips_set_count_resume β update the count resume KVM register. that's it. that's the whole vibe π
πΈ SYNOPSIS πΈ
int kvm_mips_set_count_resume (struct kvm_vcpu *vcpu , s64 count_resume
);
literally just hand it a vCPU and a number and it's off to the races π¦
π ARGUMENTS π
vcpuβ the virtual CPU. your little guy. the one you're doing all this for π«Άcount_resumeβ the new value for the count resume register. that's the number you're setting it to, iykyk.
β DESCRIPTION β
so what does it do? it sets the count resume KVM register. that's the assignment. it ate and left no crumbs π
π₯ RETURN π₯
-EINVALβ bestie no π you went out of the valid range, which is0..now. the function is not having it.0β success!! slay!! we love a clean return π
ngl the range check is0..nowβ stay inside it or you get the-EINVALtreatment. periodt.
π¦ SEE ALSO π¦
in the kernel file ./arch/mips/kvm/emulate.c you'll find all of these iconic siblings of our girl:
kvm_get_badinstr(9)kvm_get_badinstrp(9)kvm_mips_count_disabled(9)kvm_mips_ktime_to_count(9)kvm_mips_count_time(9)kvm_mips_read_count_running(9)kvm_mips_read_count(9)kvm_mips_freeze_hrtimer(9)kvm_mips_resume_hrtimer(9)kvm_mips_restore_hrtimer(9)kvm_mips_write_count(9)kvm_mips_init_count(9)kvm_mips_set_count_hz(9)kvm_mips_write_compare(9)kvm_mips_count_disable(9)kvm_mips_count_disable_cause(9)kvm_mips_count_enable_cause(9)kvm_mips_set_count_ctl(9)kvm_mips_count_timeout(9)
like an entire friend group honestly, they all go together π§π
and that's the whole page, bestie!! sign-off time: this legendary piece of documentation lives in ./arch/mips/kvm and it's dated October 2026 β the manual name is kvm_mips_set_count_resume(9) in case you forgot already π anyway ily, go set some registers responsibly πβπ
π¦ 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