[GIT PULL] LoongArch KVM changes for v7.2

From: Huacai Chen

Date: Fri Jun 12 2026 - 22:43:03 EST


The following changes since commit 4549871118cf616eecdd2d939f78e3b9e1dddc48:

Linux 7.1-rc7 (2026-06-07 15:37:58 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git tags/loongarch-kvm-7.2

for you to fetch changes up to aeded601d6aceb57cdda4b2701d2ee00c43a8b69:

LoongArch: KVM: Add missing slots_lock for device register/unregister (2026-06-11 20:46:44 +0800)

----------------------------------------------------------------
LoongArch KVM changes for v7.2

1. Enable FPU with max VM supported FPU type.
2. Some enhancements about interrupt injection.
3. Some bug fixes and other small changes.

----------------------------------------------------------------
Bibo Mao (12):
LoongArch: KVM: Add separate KVM_REQ_LBT_LOAD bit
LoongArch: KVM: Enable FPU with max supported FPU type
LoongArch: KVM: Remove some middle FPU states
LoongArch: KVM: Remove KVM_LARCH_LSX and KVM_LARCH_LASX
LoongArch: KVM: Fix FPU register width with user access API
LoongArch: KVM: Use existing macro about interrupt bit mask
LoongArch: KVM: Check irq validity in kvm_vcpu_ioctl_interrupt()
LoongArch: KVM: Check msgint feature in interrupt post
LoongArch: KVM: Inject interrupts with batch method
LoongArch: KVM: Add valid bit check when set CSR.ESTAT register
LoongArch: KVM: Deliver interrupt after IN_GUEST_MODE is set
LoongArch: KVM: Remove timer interrupt injection when SW timer expired

Qiang Ma (2):
LoongArch: KVM: Check the return values for put_user()
LoongArch: KVM: Return full old CSR value from kvm_emu_xchg_csr()

Yanfei Xu (1):
LoongArch: KVM: Validate irqchip index in irqfd routing

Zeng Chi (1):
LoongArch: KVM: Add missing slots_lock for device register/unregister

arch/loongarch/include/asm/kvm_host.h | 14 ++--
arch/loongarch/include/asm/kvm_vcpu.h | 43 +++++++++----
arch/loongarch/kvm/exit.c | 22 ++-----
arch/loongarch/kvm/intc/eiointc.c | 6 ++
arch/loongarch/kvm/intc/ipi.c | 2 +
arch/loongarch/kvm/intc/pch_pic.c | 2 +
arch/loongarch/kvm/interrupt.c | 98 ++++++++--------------------
arch/loongarch/kvm/irqfd.c | 3 +-
arch/loongarch/kvm/timer.c | 3 +-
arch/loongarch/kvm/vcpu.c | 118 ++++++++++++++--------------------
10 files changed, 131 insertions(+), 180 deletions(-)