RISC-V: KVM: selftests: Treat SBI ext regs like ISA ext regs
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 13 Dec 2023 17:09:58 +0000 (18:09 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 29 Dec 2023 07:01:51 +0000 (12:31 +0530)
commitbdf6aa328f137e184b0fce607fd585354c3742f1
tree57d8d36563a425ff1494b7bf656d9d42f12cca9f
parentb26e70d72d12dc9ddb276898a78b1c35c7ab9b95
RISC-V: KVM: selftests: Treat SBI ext regs like ISA ext regs

SBI extension registers may not be present and indeed when
running on a platform without sscofpmf the PMU SBI extension
is not. Move the SBI extension registers from the base set of
registers to the filter list. Individual configs should test
for any that may or may not be present separately. Since
the PMU extension may disappear and the DBCN extension is only
present in later kernels, separate them from the rest into
their own configs. The rest are lumped together into the same
config.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/riscv/get-reg-list.c