KVM: riscv: selftests: Change vcpu_has_ext to a common function
authorHaibo Xu <haibo1.xu@intel.com>
Mon, 22 Jan 2024 09:58:41 +0000 (17:58 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 6 Mar 2024 15:23:27 +0000 (20:53 +0530)
commit812806bd1e70f79cc69061f9fd9bb1d367990d37
tree80e2d5c9ed6e3b968a5d9766f993d555024eba6b
parent1e979288c9b50a1eef1c5fa2fa93936012a0ed6f
KVM: riscv: selftests: Change vcpu_has_ext to a common function

Move vcpu_has_ext to the processor.c and rename it to __vcpu_has_ext
so that other test cases can use it for vCPU extension check.

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