diff options
| author | Jinyu Tang <jinyu.tang@linux.dev> | 2026-08-14 08:35:41 -0400 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-10-03 11:42:50 +0530 |
| commit | a84c5e0c31462588d2ec0fba17d9380ed9be6fcf (patch) | |
| tree | 28c75bd7f1ed3f9afd5f41a517e1f61391a58825 /tools/perf/scripts/python/flamegraph.py | |
| parent | 165a50429e9f319e4a3bbc396cbec7c3f336ae5f (diff) | |
KVM: riscv: Avoid redundant interrupt check for pending timers
The kvm_vcpu_check_block() calls kvm_arch_vcpu_runnable() before
checking whether a timer is pending. On RISC-V, kvm_arch_vcpu_runnable()
already checks all pending guest interrupts through
kvm_riscv_vcpu_has_interrupts(vcpu, -1UL), including IRQ_VS_TIMER.
Drop the repeated IRQ_VS_TIMER pending-interrupt check from
kvm_riscv_vcpu_timer_pending() and keep the helper focused on the timer
deadline state. If the timer becomes pending after the runnable check,
the timer path still injects IRQ_VS_TIMER and kicks the vCPU through the
normal wakeup path.
Signed-off-by: Jinyu Tang <jinyu.tang@linux.dev>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260814123541.593613-1-jinyu.tang@linux.dev
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
