kvm_mips_resume_hrtimer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” ktime at point of resume.
  • count β€” CP0_Count at 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:

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