[PATCH 0/2] KVM: selftests: riscv vm satp modes support
wu.fei9 at sanechips.com.cn
wu.fei9 at sanechips.com.cn
Thu Oct 16 20:09:08 PDT 2025
Riscv kvm selftests set default vm mode to sv48, which causes tests to
fail on platform supporting sv39 only, such as '-cpu rva23s64' on qemu.
Also, the current vm modes cannot represent riscv satp modes precisely,
so riscv specific modes are added.
Wu Fei (2):
KVM: riscv: selftests: Add riscv vm satp modes
KVM: riscv: selftests: Detect supported vm modes
.../testing/selftests/kvm/include/kvm_util.h | 9 ++-
.../selftests/kvm/include/riscv/processor.h | 2 +
tools/testing/selftests/kvm/lib/guest_modes.c | 25 +++++---
tools/testing/selftests/kvm/lib/kvm_util.c | 15 +++++
.../selftests/kvm/lib/riscv/processor.c | 57 +++++++++++++++++--
5 files changed, 96 insertions(+), 12 deletions(-)
--
2.43.0
More information about the kvm-riscv
mailing list