On Fri, Oct 17, 2025 at 09:29:25PM +0530, Anup Patel wrote: > The KVM RISC-V allows SBI MPXY extensions for Guest/VM so add > it to the get-reg-list test. > > Signed-off-by: Anup Patel <[email protected]> > --- > tools/testing/selftests/kvm/riscv/get-reg-list.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/kvm/riscv/get-reg-list.c > b/tools/testing/selftests/kvm/riscv/get-reg-list.c > index 705ab3d7778b..cb54a56990a0 100644 > --- a/tools/testing/selftests/kvm/riscv/get-reg-list.c > +++ b/tools/testing/selftests/kvm/riscv/get-reg-list.c > @@ -133,6 +133,7 @@ bool filter_reg(__u64 reg) > case KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | > KVM_RISCV_SBI_EXT_SUSP: > case KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | > KVM_RISCV_SBI_EXT_STA: > case KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | > KVM_RISCV_SBI_EXT_FWFT: > + case KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | > KVM_RISCV_SBI_EXT_MPXY: > case KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | > KVM_RISCV_SBI_EXT_EXPERIMENTAL: > case KVM_REG_RISCV_SBI_EXT | KVM_REG_RISCV_SBI_SINGLE | > KVM_RISCV_SBI_EXT_VENDOR: > return true; > @@ -639,6 +640,7 @@ static const char *sbi_ext_single_id_to_str(__u64 reg_off) > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_SUSP), > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_STA), > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_FWFT), > + KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_MPXY), > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_EXPERIMENTAL), > KVM_SBI_EXT_ARR(KVM_RISCV_SBI_EXT_VENDOR), > }; > @@ -1142,6 +1144,7 @@ KVM_SBI_EXT_SUBLIST_CONFIG(sta, STA); > KVM_SBI_EXT_SIMPLE_CONFIG(pmu, PMU); > KVM_SBI_EXT_SIMPLE_CONFIG(dbcn, DBCN); > KVM_SBI_EXT_SIMPLE_CONFIG(susp, SUSP); > +KVM_SBI_EXT_SIMPLE_CONFIG(mpxy, MPXY); > KVM_SBI_EXT_SUBLIST_CONFIG(fwft, FWFT); > > KVM_ISA_EXT_SUBLIST_CONFIG(aia, AIA); > @@ -1222,6 +1225,7 @@ struct vcpu_reg_list *vcpu_configs[] = { > &config_sbi_pmu, > &config_sbi_dbcn, > &config_sbi_susp, > + &config_sbi_mpxy, > &config_sbi_fwft, > &config_aia, > &config_fp_f, > -- > 2.43.0 >
Reviewed-by: Andrew Jones <[email protected]>

