[PATCH 0/5] Small enhancement about interrupt injection

Bibo Mao posted 5 patches 1 month ago
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(-)
[PATCH 0/5] Small enhancement about interrupt injection
Posted by Bibo Mao 1 month ago
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
-- 
2.39.3
Re: [PATCH 0/5] Small enhancement about interrupt injection
Posted by Bibo Mao 1 month ago
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
>