]> xenbits.xensource.com Git - people/pauldu/linux.git/commit
KVM: riscv: selftests: Use register subtypes
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 13 Dec 2023 17:09:57 +0000 (18:09 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 29 Dec 2023 07:01:49 +0000 (12:31 +0530)
commitb26e70d72d12dc9ddb276898a78b1c35c7ab9b95
treef7529b43071404d9c5b5947c8495f5043425374c
parent6ccf119a4cc886678099a3526f37db98b67024d7
KVM: riscv: selftests: Use register subtypes

Always use register subtypes in the get-reg-list test when registers
have them. The only registers neglecting to do so were ISA extension
registers. While we don't really need to use KVM_REG_RISCV_ISA_SINGLE
(since it's zero), the main purpose is to avoid confusion and to
self-document the tests. Also add print support for the multi
registers like SBI extensions have, even though they're only used for
debugging.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/riscv/get-reg-list.c