[GIT PULL] LoongArch KVM changes for v6.18

From: Huacai Chen

Date: Wed Sep 24 2025 - 04:13:56 EST


The following changes since commit 07e27ad16399afcd693be20211b0dfae63e0615f:

Linux 6.17-rc7 (2025-09-21 15:08:52 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 66e2d96b1c5875122bfb94239989d832ccf51477:

LoongArch: KVM: Move kvm_iocsr tracepoint out of generic code (2025-09-23 23:37:26 +0800)

----------------------------------------------------------------
LoongArch KVM changes for v6.18

1. Add PTW feature detection on new hardware.
2. Add sign extension with kernel MMIO/IOCSR emulation.
3. Improve in-kernel IPI emulation.
4. Improve in-kernel PCH-PIC emulation.
5. Move kvm_iocsr tracepoint out of generic code.

----------------------------------------------------------------
Bibo Mao (9):
LoongArch: KVM: Add PTW feature detection on new hardware
LoongArch: KVM: Add sign extension with kernel MMIO read emulation
LoongArch: KVM: Add sign extension with kernel IOCSR read emulation
LoongArch: KVM: Add implementation with IOCSR_IPI_SET
LoongArch: KVM: Access mailbox directly in mail_send()
LoongArch: KVM: Set version information at initial stage
LoongArch: KVM: Add IRR and ISR register read emulation
LoongArch: KVM: Add different length support in loongarch_pch_pic_read()
LoongArch: KVM: Add different length support in loongarch_pch_pic_write()

Steven Rostedt (1):
LoongArch: KVM: Move kvm_iocsr tracepoint out of generic code

Yury Norov (NVIDIA) (1):
LoongArch: KVM: Rework pch_pic_update_batch_irqs()

arch/loongarch/include/asm/kvm_pch_pic.h | 15 +-
arch/loongarch/include/uapi/asm/kvm.h | 1 +
arch/loongarch/kvm/exit.c | 19 +--
arch/loongarch/kvm/intc/ipi.c | 80 ++++++-----
arch/loongarch/kvm/intc/pch_pic.c | 239 +++++++++++++------------------
arch/loongarch/kvm/trace.h | 35 +++++
arch/loongarch/kvm/vcpu.c | 2 +
arch/loongarch/kvm/vm.c | 4 +
include/trace/events/kvm.h | 35 -----
9 files changed, 211 insertions(+), 219 deletions(-)