Re: [PATCH v2 0/2] LoongArch: KVM: Code cleanup with MSI intterupt injection

From: Huacai Chen

Date: Sat Oct 03 2026 - 00:08:04 EST


Applied, thanks.


Huacai

On Wed, Sep 23, 2026 at 9:25 AM Bibo Mao <maobibo@xxxxxxxxxxx> wrote:
>
> Here is to remove some unnecessary parameter checking when injecting
> MSI interrupt, include MSI level parameter and vcpu::arch::dmsintc_state
> NULL pointer etc.
> ---
> v1 ... v2:
> 1. Remove function dmsintc_deliver_msi_to_vcpu() and inline it in
> dmsintc_set_irq().
>
> 2. Keep return value with -1 rather than -EINVAL when level == 0
> in kvm_set_msi(). Return value with 0 is one option also, now keep
> similar with other architectures, will modify this in future when the
> final solution is made.
> ---
> Bibo Mao (2):
> LoongArch: KVM: Remove parameter line when inject MSI
> LoongArch: KVM: Remove duplicated checking with DMSI irq injection
>
> arch/loongarch/include/asm/kvm_dmsintc.h | 3 +-
> arch/loongarch/include/asm/kvm_pch_pic.h | 2 +-
> arch/loongarch/kvm/intc/dmsintc.c | 37 +++++-------------------
> arch/loongarch/kvm/intc/pch_pic.c | 6 ++--
> arch/loongarch/kvm/irqfd.c | 4 +--
> 5 files changed, 15 insertions(+), 37 deletions(-)
>
>
> base-commit: 93f51579e7df248780214094418f205253383cc5
> --
> 2.39.3
>
>