kvm_mips_count_enable_cause(9)
π kvm_mips_count_enable_cause(9) π
okay so hi bestie, welcome to the Kernel API Manual β¨ this one is a little MIPS/KVM timer moment and it's giving βbe careful with orderingβ energy fr fr.
π NAME π
kvm_mips_count_enable_cause β Enable count using CP0_Cause.DC.
πΈ SYNOPSIS πΈ
void kvm_mips_count_enable_cause (struct kvm_vcpu *vcpu );
π¦ ARGUMENTS π¦
vcpuβ Virtual CPU.
β¨ DESCRIPTION β¨
This function enables the CP0_Count timer and clears CP0_Cause.DC. A timer interrupt after the start time will be handled if the timer isn't disabled by count_ctl.DC, potentially before even returning, so the caller should be careful with ordering of CP0_Cause modifications so as not to lose it.
lowkey important: it assumes CP0_Cause.DC is set (count disabled). So don't skip the setup, okay? π
π§ SEE ALSO π§
Kernel file: ./arch/mips/kvm/emulate.c β and the whole squad is:
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_set_count_ctl(9)kvm_mips_set_count_resume(9)kvm_mips_count_timeout(9)
xoxo, source: ./arch/mips/kvm Β· version/page: kvm_mips_count_enable_cause(9) Β· date: October 2026 β mwah π
π¦ 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