Re: [PATCH 0/5] Small enhancement about interrupt injection
From: Bibo Mao
Date: Mon May 11 2026 - 03:07:09 EST
Soryy, that is too quick.
The tile of this patchset should add "LoongArch: KVM:"
Regards
Bibo Mao
On 2026/5/11 下午2:51, Bibo Mao wrote:
Here make intterupt status acquire interface simpler, add new interface
kvm_vcpu_sync_intr() to sync pending interrupt to software ESTAT
register, and remove expensive vcpu_load() and vcpu_put() function call.
Also interrupt inject is handled with batch method, rather one by one.
Bibo Mao (5):
LoongArch: KVM: Check msgint feature in interrupt post
LoongArch: KVM: Use existing macro about interrupt bit mask
LoongArch: KVM: Clear interrupt with batch mode
LoongArch: KVM: Deliver interrupt with batch method
LoongArch: KVM: Simple interrupt status acquire interface
arch/loongarch/include/asm/kvm_vcpu.h | 40 +++++---
arch/loongarch/kvm/interrupt.c | 140 +++++++++++++-------------
arch/loongarch/kvm/vcpu.c | 22 ++--
3 files changed, 106 insertions(+), 96 deletions(-)
base-commit: 917719c412c48687d4a176965d1fa35320ec457c