[PATCH v4 08/12] KVM: arm64: selftests: Move reject_set check logic to a function