[PATCH v2 0/5] LoongArch: KVM: Small enhancement about interrupt injection

Bibo Mao posted 5 patches 4 weeks, 1 day ago
There is a newer version of this series
arch/loongarch/include/asm/kvm_vcpu.h |  44 +++++---
arch/loongarch/kvm/interrupt.c        | 140 +++++++++++++-------------
arch/loongarch/kvm/vcpu.c             |  57 +++++++----
3 files changed, 136 insertions(+), 105 deletions(-)
[PATCH v2 0/5] LoongArch: KVM: Small enhancement about interrupt injection
Posted by Bibo Mao 4 weeks, 1 day ago
Here make interrupt 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.

---
v1 ... v2:
  1. Add irq validility check in function kvm_vcpu_ioctl_interrupt().
  2. Add valid bit check when set ESTAT CSR register.
  3. Merge two patches about interrupt clear and set with batch method into
     one.
---
Bibo Mao (5):
  LoongArch: KVM: Check irq validility in kvm_vcpu_ioctl_interrupt()
  LoongArch: KVM: Use existing macro about interrupt bit mask
  LoongArch: KVM: Inject interrupt with batch method
  LoongArch: KVM: Add valid bit check when set ESTAT CSR register
  LoongArch: KVM: Simple interrupt status acquire interface

 arch/loongarch/include/asm/kvm_vcpu.h |  44 +++++---
 arch/loongarch/kvm/interrupt.c        | 140 +++++++++++++-------------
 arch/loongarch/kvm/vcpu.c             |  57 +++++++----
 3 files changed, 136 insertions(+), 105 deletions(-)


base-commit: 5d6919055dec134de3c40167a490f33c74c12581
-- 
2.39.3