diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2026-05-04 09:00:48 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-05-04 09:00:48 +0800 |
| commit | 2433f3f5724b3af569d9fb411ba728629524738b (patch) | |
| tree | 337b6f850b12f4f2772d414cd294199fb4240326 /tools/debugging | |
| parent | 6debfff78584f0adedf7355fe5263198a3fc6b19 (diff) | |
LoongArch: KVM: Fix HW timer interrupt lost when inject interrupt by software
With passthrough HW timer, timer interrupt is injected by HW. When
inject emulated CPU interrupt by software such SIP0/SIP1/IPI, HW timer
interrupt may be lost.
Here check whether there is timer tick value inversion before and after
injecting emulated CPU interrupt by software, timer enabling by reading
timer cfg register is skipped. If the timer tick value is detected with
changing, then timer should be enabled. And inject a timer interrupt by
software if there is.
Cc: <stable@vger.kernel.org>
Fixes: f45ad5b8aa93 ("LoongArch: KVM: Implement vcpu interrupt operations").
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/debugging')
0 files changed, 0 insertions, 0 deletions
