[GIT PULL] KVM/riscv changes for 7.4
Anup Patel
anup at brainfault.org
Thu Oct 22 05:51:19 PDT 2026
Hi Paolo,
I was on vacation last week; hence, I am sending
the KVM RISC-V 7.4 PR a bit late. Apologies for
the inconvenience.
We have the following KVM RISC-V changes for 7.4:
1) Lazy V-extension enablement for KVM selftests
2) Implement KVM_PRE_FAULT_MEMORY ioctl() and enable corresponding KVM selftests
3) Show sepc/scause/stval CSRs in KVM selftests vcpu dump
4) Use a raw lock for IMSIC wakeup state
5) Reject vCPU creation after AIA initialization
6) Updated next branch name in KVM/riscv MAINTAINERS entry
7) Allow Zicclsm, Ziccamoa, Ziccif, Za64rs for KVM guest
In addition to the above, we also have the following fixes
and minor improvements:
1) Avoid redundant interrupt check for pending timers
2) Fix build with vector support disabled
3) Fix IPI delivery for out-of-order vcpu_id
4) Replace imsic switch-case macros with range checks
Please pull.
Regards,
Anup
The following changes since commit 72d3fcf802c45d00b300f25b848a93c3a2bd7c7e:
Linux 7.3-rc5 (2026-09-27 13:55:01 -0700)
are available in the Git repository at:
https://github.com/kvm-riscv/linux.git tags/kvm-riscv-7.4-1
for you to fetch changes up to 633b3931a87438282d6454646ff40c669a6896cb:
KVM: riscv: selftest: add Zicclsm, Ziccamoa, Ziccif, Za64rs
(2026-10-22 13:01:31 +0530)
----------------------------------------------------------------
KVM/riscv changes for 7.4
- Lazy V-extension enablement for KVM selftests
- Avoid redundant interrupt check for pending timers
- Implement KVM_PRE_FAULT_MEMORY ioctl() and enable corresponding KVM selftests
- Show sepc/scause/stval CSRs in KVM selftests vcpu dump
- Reject vCPU creation after AIA initialization
- Fix build with vector support disabled
- Fix IPI delivery for out-of-order vcpu_id
- Replace imsic switch-case macros with range checks
- Use a raw lock for IMSIC wakeup state
- Reject vCPU creation after AIA initialization
- Updated next branch name in KVM/riscv MAINTAINERS entry
- Allow Zicclsm, Ziccamoa, Ziccif, Za64rs for KVM guest
----------------------------------------------------------------
Andrew Jones (2):
RISC-V: KVM: Reject vCPU creation after AIA initialization
RISC-V: KVM: Use a raw lock for IMSIC wakeup state
Heinrich Schuchardt (2):
RISC-V: KVM: Allow Zicclsm, Ziccamoa, Ziccif, Za64rs in guest
KVM: riscv: selftest: add Zicclsm, Ziccamoa, Ziccif, Za64rs
Jinyu Tang (4):
KVM: riscv: Avoid redundant interrupt check for pending timers
KVM: riscv: Implement KVM_PRE_FAULT_MEMORY
KVM: selftests: Add RISC-V Sv57 page table indexing
KVM: selftests: Enable pre_fault_memory_test for RISC-V
Matthias Goergens (1):
MAINTAINERS: name the kvm-riscv/linux riscv_kvm_next branch
Stefan Butz (1):
RISC-V: KVM: Don't write MMIO load result to x0
Xiaofeng Yuan (2):
RISC-V: KVM: Fix IPI delivery for out-of-order vcpu_id
RISC-V: KVM: Replace imsic switch-case macros with range checks
Yong-Xuan Wang (1):
KVM: riscv: selftests: Dump sepc/scause/stval on vcpu_arch_dump()
Zhanpeng Zhang (1):
RISC-V: KVM: Fix build with vector support disabled
jinrui (1):
KVM: selftests: riscv: Add lazy V extension enablement for guests
MAINTAINERS | 2 +-
arch/riscv/include/asm/kvm_vcpu_vector.h | 6 +-
arch/riscv/include/uapi/asm/kvm.h | 4 +
arch/riscv/kvm/Kconfig | 1 +
arch/riscv/kvm/aia_imsic.c | 149 +++++----------------
arch/riscv/kvm/gstage.c | 6 +-
arch/riscv/kvm/isa.c | 8 ++
arch/riscv/kvm/mmu.c | 42 ++++++
arch/riscv/kvm/vcpu.c | 3 +
arch/riscv/kvm/vcpu_insn.c | 2 +-
arch/riscv/kvm/vcpu_sbi_replace.c | 12 +-
arch/riscv/kvm/vcpu_timer.c | 6 +-
arch/riscv/kvm/vm.c | 1 +
tools/testing/selftests/kvm/Makefile.kvm | 1 +
.../selftests/kvm/include/riscv/processor.h | 19 +++
tools/testing/selftests/kvm/lib/riscv/processor.c | 109 +++++++++++++--
tools/testing/selftests/kvm/riscv/get-reg-list.c | 16 +++
17 files changed, 246 insertions(+), 141 deletions(-)
More information about the linux-riscv
mailing list