diff options
| author | 2026-08-14 08:35:41 -0400 | |
|---|---|---|
| committer | 2026-10-03 11:42:50 +0530 | |
| commit | a84c5e0c31462588d2ec0fba17d9380ed9be6fcf (patch) | |
| tree | 28c75bd7f1ed3f9afd5f41a517e1f61391a58825 /scripts/Makefile.thinlto | |
| parent | KVM: selftests: riscv: Add lazy V extension enablement for guests (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
