kvm_mips_set_count_hz(9)
πΈ NAME πΈ
This is kvm_mips_set_count_hz(9) β yes, the whole mouthful β straight from the Kernel API Manual, bestie.
kvm_mips_set_count_hz β update the frequency of the timer. Slay.
β¨ SYNOPSIS β¨
Okay so the signature is literally:
int kvm_mips_set_count_hz (struct kvm_vcpu *vcpu , s64 count_hz );
π ARGUMENTS π
vcpuβ virtual CPU. The main character of this call, honestly.count_hzβ frequency of theCP0_Counttimer in Hz. The number that makes the timer go brrr.
π DESCRIPTION π
Change the frequency of the CP0_Count timer.
This is done atomically, so that CP0_Count is continuous and no timer interrupt is lost. The way it keeps everything smooth is lowkey iconic β¨.
no cap: atomic here is the whole vibe β continuous CP0_Count, zero lost timer interrupts. π«Ά
π₯ RETURN π₯
-EINVALifcount_hzis out of range.0on success. Periodt. π
π¦ SEE ALSO π¦
Kernel file ./arch/mips/kvm/emulate.c
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_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_set_count_resume(9)kvm_mips_count_timeout(9)
π§ cute little sign-off: this page is from ./arch/mips/kvm, dated October 2026, and it lives in the Kernel API Manual as kvm_mips_set_count_hz(9) β byeeeeee π«Άπ
π¦ 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