lkml.org 
[lkml]   [2026]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 0/3] LoongArch: KVM: Small enhancement about timer
The first patch cannot be applied cleanly, I adjusted it and applied,
hope it is correct.
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git/log/?h=loongarch-next


Huacai

On Tue, Apr 14, 2026 at 3:23 PM Bibo Mao <maobibo@loongson.cn> wrote:
>
> By running LTP stress test cases on VM, there is an RCU timeout issue on
> some vCPUs recently. The problem is that there is HW timer interrupt lost
> issue when injecting SIP0/IPI interrupt from KVM hypervisor, this problem
> is hidden because the KVM hypervisor will inject spurious timer interrupt
> if emulated timer is expired. In late the spurious timer interrupt is
> clear if old TI bit of ESTAT register is not set, so there will be RCU
> timeout issue with LTP stress test.
>
> This patch set fixes the HW timer interrupt lost issue, also this patch
> moves unconditional delay in timer interrupt clear scenery, which happens
> seldomly; mostly the timer interrupt bit is set when it expires.
>
> Bibo Mao (3):
> LoongArch: KVM: Move AVEC interrupt injection in switch loop
> LoongArch: KVM: Fix HW timer interrupt lost when inject interrupt from
> software
> LoongArch: KVM: Move unconditional delay in timer clear scenery
>
> arch/loongarch/kvm/interrupt.c | 37 +++++++++++++++++++++++++---------
> arch/loongarch/kvm/timer.c | 16 +++++++++++++--
> 2 files changed, 41 insertions(+), 12 deletions(-)
>
>
> base-commit: d568788baab24875604c231f723dbb72387fb081
> --
> 2.39.3
>
>

\
 
 \ /
  Last update: 2026-04-29 12:13    [W:0.116 / U:2.838 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog