[PATCH v2] KVM: riscv: selftests: Add riscv vm satp modes

Nutty.Liu nutty.liu at hotmail.com
Mon Nov 3 19:38:15 PST 2025


On 10/29/2025 7:20 PM, 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: Nutty Liu <nutty.liu at hotmail.com>

Thanks,
Nutty



More information about the kvm-riscv mailing list