[PATCH] LoongArch: KVM: Remove timer interrupt injection with SW timer expired

From: Bibo Mao

Date: Sat May 09 2026 - 00:02:21 EST


The software timer emulation is to wake up vCPU when vCPU executes
idle instruction and gives up host CPU, timer interrupt is injected
in vCPU context switch on and guest CSR timer restore function.

It is not necessary to inject timer interrupt when SW timer is expired.
Here remove it.

Signed-off-by: Bibo Mao <maobibo@xxxxxxxxxxx>
---
arch/loongarch/kvm/timer.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/loongarch/kvm/timer.c b/arch/loongarch/kvm/timer.c
index 8356fce0043f..9bbf25be3903 100644
--- a/arch/loongarch/kvm/timer.c
+++ b/arch/loongarch/kvm/timer.c
@@ -30,7 +30,6 @@ enum hrtimer_restart kvm_swtimer_wakeup(struct hrtimer *timer)
struct kvm_vcpu *vcpu;

vcpu = container_of(timer, struct kvm_vcpu, arch.swtimer);
- kvm_queue_irq(vcpu, INT_TI);
rcuwait_wake_up(&vcpu->wait);

return HRTIMER_NORESTART;

base-commit: 917719c412c48687d4a176965d1fa35320ec457c
--
2.39.3