[GIT PULL] LoongArch KVM changes for v7.3

From: Huacai Chen

Date: Thu Aug 13 2026 - 08:09:03 EST


The following changes since commit db2ddb87143519e20a95aa36c60b36107b736a58:

Linux 7.2-rc7 (2026-08-09 14:54:50 -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.3

for you to fetch changes up to c5959723aaae06aa617253528e6b228b3c858215:

KVM: LoongArch: selftests: Add FPU/LSX/LASX test cases (2026-08-10 12:21:58 +0800)

----------------------------------------------------------------
LoongArch KVM changes for v7.3

1. Advertise already-supported capabilities.
2. Some bug fixes about timer and MMIO.
3. Some hardening about interrupt injection.
4. Replace kvm_err() with kvm_pr_unimpl().
5. Add FPU/LSX/LASX test cases for selftests.

----------------------------------------------------------------
Bibo Mao (8):
LoongArch: KVM: Set vcpu->cpu before IN_GUEST_MODE is set
LoongArch: KVM: Set default MAILBOX access size with 8
LoongArch: KVM: Return directly when IPI address is not aligned
LoongArch: KVM: Fix uninitialized stack variable issue with dmsintc
LoongArch: KVM: Use internal API to deliver interrupt in kernel mode
LoongArch: KVM: Replace kvm_err() with kvm_pr_unimpl()
KVM: LoongArch: selftests: Enable LSX/LASX by auto detection
KVM: LoongArch: selftests: Add FPU/LSX/LASX test cases

Tao Cui (3):
LoongArch: KVM: Advertise already-supported capabilities
LoongArch: KVM: Reload one-shot TVAL on migration destination
LoongArch: KVM: Prevent division by zero in periodic timer restore

Zeng Chi (1):
LoongArch: KVM: Fix PC double advance in kernel MMIO read fast path

arch/loongarch/kvm/exit.c | 19 ++-
arch/loongarch/kvm/intc/dmsintc.c | 18 +--
arch/loongarch/kvm/intc/eiointc.c | 32 ++---
arch/loongarch/kvm/intc/ipi.c | 77 ++++++------
arch/loongarch/kvm/intc/pch_pic.c | 12 +-
arch/loongarch/kvm/timer.c | 14 +++
arch/loongarch/kvm/vcpu.c | 7 +-
arch/loongarch/kvm/vm.c | 4 +
tools/testing/selftests/kvm/Makefile.kvm | 3 +-
.../selftests/kvm/include/loongarch/processor.h | 18 +++
.../selftests/kvm/lib/loongarch/processor.c | 11 +-
tools/testing/selftests/kvm/loongarch/fpu_test.c | 137 +++++++++++++++++++++
12 files changed, 269 insertions(+), 83 deletions(-)
create mode 100644 tools/testing/selftests/kvm/loongarch/fpu_test.c