kvm_mips_resume_hrtimer(9)
okay so bestie, this is the kvm_mips_resume_hrtimer(9) page from the Kernel API Manual, and itβs literally about resuming an hrtimer and updating its expiry. π
β¨ NAME β¨
kvm_mips_resume_hrtimer β Resume hrtimer, updating expiry. Thatβs the whole main-character job, no cap. π
π SYNOPSIS π
void kvm_mips_resume_hrtimer (struct kvm_vcpu *vcpu , ktime_t now , u32
count );
π ARGUMENTS π
vcpuβ Virtual CPU. literally the vCPU weβre resuming for.nowβktimeat point of resume.countβCP0_Countat point of resume.
π¦ DESCRIPTION π¦
Resumes the timer and updates the timer expiry based on now and count. This can be used in conjunction with kvm_mips_freeze_timer when timer parameters need to be changed. Itβs giving freeze-and-resume teamwork. β¨
It is guaranteed that a timer interrupt immediately after resume will be handled, but not if CP_Compare is exactly at count. That case is already handled by kvm_mips_freeze_timer. So yeah β tiny exception, very important. π
Assumes !kvm_mips_count_disabled(vcpu) (guest CP0_Count timer is running). Keep that assumption close, bestie. π«Ά
π SEE ALSO π
Kernel file ./arch/mips/kvm/emulate.c is here too, along with all these function besties:
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_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_set_count_resume(9)kvm_mips_count_timeout(9)
mwah π β sent from the source path ./arch/mips/kvm, dated October 2026, in the Kernel API Manual. Thatβs the footer folded into a cute little sign-off, bestie. π«Ά
π¦ 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