KVM: arm64: selftests: Move reject_set check logic to a function
authorHaibo Xu <haibo1.xu@intel.com>
Tue, 25 Jul 2023 08:41:34 +0000 (16:41 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 9 Aug 2023 06:45:14 +0000 (12:15 +0530)
commit90a6bcbc542d0d61f50eeb85952e4fc49dbf3841
tree50e0c8b28662556749cd2f15637c369bd1030e10
parentbe4c58060c3efd1f8dff59e59ff8e69d08f00560
KVM: arm64: selftests: Move reject_set check logic to a function

No functional changes. Just move the reject_set check logic to a
function so we can check for a specific errno. This is a preparation
for support reject_set in riscv.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
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/aarch64/get-reg-list.c
tools/testing/selftests/kvm/get-reg-list.c