[PATCH v2] KVM: riscv: selftests: Add riscv vm satp modes
Andrew Jones
ajones at ventanamicro.com
Fri Oct 31 12:26:15 PDT 2025
On Wed, Oct 29, 2025 at 07:20:08PM +0800, wu.fei9 at sanechips.com.cn wrote:
> Current vm modes cannot represent riscv guest modes precisely, here add
> all 9 combinations of P(56,40,41) x V(57,48,39). Also the default vm
> mode is detected on runtime instead of hardcoded one, which might not be
> supported on specific machine.
>
> Signed-off-by: Wu Fei <wu.fei9 at sanechips.com.cn>
> ---
> .../testing/selftests/kvm/include/kvm_util.h | 17 ++++-
> .../selftests/kvm/include/riscv/processor.h | 2 +
> tools/testing/selftests/kvm/lib/guest_modes.c | 41 +++++++++---
> tools/testing/selftests/kvm/lib/kvm_util.c | 33 ++++++++++
> .../selftests/kvm/lib/riscv/processor.c | 63 +++++++++++++++++--
> 5 files changed, 142 insertions(+), 14 deletions(-)
>
Reviewed-by: Andrew Jones <ajones at ventanamicro.com>
More information about the kvm-riscv
mailing list