]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Remove timer interrupt injection when SW timer expired
authorBibo Mao <maobibo@loongson.cn>
Thu, 11 Jun 2026 12:46:43 +0000 (20:46 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 11 Jun 2026 12:46:43 +0000 (20:46 +0800)
commit83551ccedffda28b1fa7aeb8fcf5e00489443816
tree80742c82948f23893ae5a38a5cc318dca295c1db
parent8c5cd2b9d6a724998c1ab9af06ac897b6152d568
LoongArch: KVM: Remove timer interrupt injection when SW timer expired

The software timer emulation is to wake up vCPU when the vCPU executes
idle instruction and gives up host CPU, the vCPU timer tick value and
interrupt is set when vCPU is scheduled in.

It is not necessary to inject timer interrupt when SW timer is expired.
Here remove it, also use common API kvm_vcpu_wake_up() to wake up vCPU.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/timer.c