[GIT PULL] LoongArch KVM changes for v7.4

From: Huacai Chen

Date: Thu Oct 15 2026 - 02:50:17 EST


The following changes since commit 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907:

Linux 7.3-rc7 (2026-10-11 20:04:55 -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.4

for you to fetch changes up to 34f4ce22cf25802d8026c60c13c2db81f8c8e3a0:

KVM: LoongArch: selftests: Enable HW PTW by auto detection method (2026-10-13 16:49:05 +0800)

----------------------------------------------------------------
LoongArch KVM changes for v7.4

1. Add separate vmid support.
2. Simplify MSI intterupt injection.
3. Add hypercall crash support.
4. Allow to set pv_feature until vCPU run.
5. Enable HW PTW automatically in selftests.

----------------------------------------------------------------
Bibo Mao (8):
LoongArch: KVM: Add vmid support for stage2 MMU
LoongArch: KVM: Implement vmid updating logic
LoongArch: KVM: Probe & enable separate vmid feature
LoongArch: KVM: Remove parameter "level" when injecting MSI
LoongArch: KVM: Remove duplicated checking with DMSI irq injection
LoongArch: KVM: Add hypercall crash support
LoongArch: KVM: Allow to set pv_feature until vCPU run
KVM: LoongArch: selftests: Enable HW PTW by auto detection method

Chaithanya Lagisetty (1):
LoongArch: KVM: Return the actual error code in kvm_ipi_create()

arch/loongarch/include/asm/kvm_dmsintc.h | 3 +-
arch/loongarch/include/asm/kvm_host.h | 15 ++++-
arch/loongarch/include/asm/kvm_para.h | 3 +
arch/loongarch/include/asm/kvm_pch_pic.h | 2 +-
arch/loongarch/include/asm/loongarch.h | 5 ++
arch/loongarch/include/uapi/asm/kvm.h | 1 +
arch/loongarch/include/uapi/asm/kvm_para.h | 1 +
arch/loongarch/kernel/asm-offsets.c | 1 +
arch/loongarch/kernel/cpu-probe.c | 4 ++
arch/loongarch/kvm/exit.c | 11 ++++
arch/loongarch/kvm/intc/dmsintc.c | 36 +++--------
arch/loongarch/kvm/intc/ipi.c | 7 +--
arch/loongarch/kvm/intc/pch_pic.c | 6 +-
arch/loongarch/kvm/irqfd.c | 4 +-
arch/loongarch/kvm/main.c | 71 ++++++++++++++++++++--
arch/loongarch/kvm/mmu.c | 25 +++++++-
arch/loongarch/kvm/switch.S | 5 +-
arch/loongarch/kvm/tlb.c | 19 +++++-
arch/loongarch/kvm/vcpu.c | 15 ++++-
arch/loongarch/kvm/vm.c | 2 +
.../selftests/kvm/include/loongarch/processor.h | 3 +
.../selftests/kvm/lib/loongarch/processor.c | 16 ++++-
22 files changed, 194 insertions(+), 61 deletions(-)