KVM: selftests: riscv vm satp modes support
cover KVM: selftests: riscv vm satp modes support
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
Signature · 3 lines
kvm-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kvm-riscv