[PATCH v3 0/4] LoongArch: KVM: Small enhancements about IPI and LBT

Bibo Mao posted 4 patches 1 month, 2 weeks ago
arch/loongarch/kvm/intc/ipi.c | 57 ++++++++++++++++++++++-------------
arch/loongarch/kvm/vcpu.c     |  8 +++--
2 files changed, 41 insertions(+), 24 deletions(-)
[PATCH v3 0/4] LoongArch: KVM: Small enhancements about IPI and LBT
Posted by Bibo Mao 1 month, 2 weeks ago
Thre are some small enhancement about IPI emulation and LBT enabling in
LoongArch KVM. With IPI, it supports sending command to vCPU itself. And
with LBT it adds flag checking int function kvm_own_lbt() and make it
robust.

---
v2 ... v3:
  1. Fix stack protector issue in send_ipi_data()

v1 ... v2:
  1. Add sending IPI command to vCPU itself
  2. Avoid duplicated LBT enabling in kvm_own_lbt()
---
Bibo Mao (4):
  LoongArch: KVM: Fix stack protector issue in send_ipi_data()
  LoongArch: KVM: Access mailbox directly in mail_send()
  LoongArch: KVM: Add implementation with IOCSR_IPI_SET
  LoongArch: KVM: Make function kvm_own_lbt() robust

 arch/loongarch/kvm/intc/ipi.c | 57 ++++++++++++++++++++++-------------
 arch/loongarch/kvm/vcpu.c     |  8 +++--
 2 files changed, 41 insertions(+), 24 deletions(-)


base-commit: dfc0f6373094dd88e1eaf76c44f2ff01b65db851
-- 
2.39.3
Re: [PATCH v3 0/4] LoongArch: KVM: Small enhancements about IPI and LBT
Posted by Huacai Chen 1 month, 2 weeks ago
Patch-1 and Patch-4 are applied for loongarch-fixes.

Huacai

On Fri, Aug 15, 2025 at 10:26 AM Bibo Mao <maobibo@loongson.cn> wrote:
>
> Thre are some small enhancement about IPI emulation and LBT enabling in
> LoongArch KVM. With IPI, it supports sending command to vCPU itself. And
> with LBT it adds flag checking int function kvm_own_lbt() and make it
> robust.
>
> ---
> v2 ... v3:
>   1. Fix stack protector issue in send_ipi_data()
>
> v1 ... v2:
>   1. Add sending IPI command to vCPU itself
>   2. Avoid duplicated LBT enabling in kvm_own_lbt()
> ---
> Bibo Mao (4):
>   LoongArch: KVM: Fix stack protector issue in send_ipi_data()
>   LoongArch: KVM: Access mailbox directly in mail_send()
>   LoongArch: KVM: Add implementation with IOCSR_IPI_SET
>   LoongArch: KVM: Make function kvm_own_lbt() robust
>
>  arch/loongarch/kvm/intc/ipi.c | 57 ++++++++++++++++++++++-------------
>  arch/loongarch/kvm/vcpu.c     |  8 +++--
>  2 files changed, 41 insertions(+), 24 deletions(-)
>
>
> base-commit: dfc0f6373094dd88e1eaf76c44f2ff01b65db851
> --
> 2.39.3
>
Re: [PATCH v3 0/4] LoongArch: KVM: Small enhancements about IPI and LBT
Posted by Huacai Chen 1 month ago
On Sun, Aug 17, 2025 at 11:45 AM Huacai Chen <chenhuacai@kernel.org> wrote:
>
> Patch-1 and Patch-4 are applied for loongarch-fixes.
The rest are applied for loongarch-kvm.


Huacai

>
> Huacai
>
> On Fri, Aug 15, 2025 at 10:26 AM Bibo Mao <maobibo@loongson.cn> wrote:
> >
> > Thre are some small enhancement about IPI emulation and LBT enabling in
> > LoongArch KVM. With IPI, it supports sending command to vCPU itself. And
> > with LBT it adds flag checking int function kvm_own_lbt() and make it
> > robust.
> >
> > ---
> > v2 ... v3:
> >   1. Fix stack protector issue in send_ipi_data()
> >
> > v1 ... v2:
> >   1. Add sending IPI command to vCPU itself
> >   2. Avoid duplicated LBT enabling in kvm_own_lbt()
> > ---
> > Bibo Mao (4):
> >   LoongArch: KVM: Fix stack protector issue in send_ipi_data()
> >   LoongArch: KVM: Access mailbox directly in mail_send()
> >   LoongArch: KVM: Add implementation with IOCSR_IPI_SET
> >   LoongArch: KVM: Make function kvm_own_lbt() robust
> >
> >  arch/loongarch/kvm/intc/ipi.c | 57 ++++++++++++++++++++++-------------
> >  arch/loongarch/kvm/vcpu.c     |  8 +++--
> >  2 files changed, 41 insertions(+), 24 deletions(-)
> >
> >
> > base-commit: dfc0f6373094dd88e1eaf76c44f2ff01b65db851
> > --
> > 2.39.3
> >