diff options
author | Janis Schoetterl-Glausch <scgl@linux.ibm.com> | 2022-06-14 18:26:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-15 14:07:51 +0200 |
commit | 37f80a7c9987ff5f0a1e023dbbda2ad6b47431f7 (patch) | |
tree | 84239f0bff064c3e4703fb8bda7440c7252ece2e /tools/testing/selftests/kvm/s390x | |
parent | KVM: SVM: Hide SEV migration lockdep goo behind CONFIG_PROVE_LOCKING (diff) | |
download | linux-37f80a7c9987ff5f0a1e023dbbda2ad6b47431f7.tar.xz linux-37f80a7c9987ff5f0a1e023dbbda2ad6b47431f7.zip |
KVM: s390: selftests: Fix memop extension capability check
Fix the inverted logic of the memop extension capability check.
Fixes: 97da92c0ff92 ("KVM: s390: selftests: Use TAP interface in the memop test")
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Message-Id: <20220614162635.3445019-1-scgl@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/s390x')
-rw-r--r-- | tools/testing/selftests/kvm/s390x/memop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/s390x/memop.c b/tools/testing/selftests/kvm/s390x/memop.c index a8f9b74b9144..9113696d5178 100644 --- a/tools/testing/selftests/kvm/s390x/memop.c +++ b/tools/testing/selftests/kvm/s390x/memop.c @@ -768,7 +768,7 @@ int main(int argc, char *argv[]) extension_cap = kvm_check_cap(KVM_CAP_S390_MEM_OP_EXTENSION); for (idx = 0; idx < ARRAY_SIZE(testlist); idx++) { - if (testlist[idx].extension >= extension_cap) { + if (extension_cap >= testlist[idx].extension) { testlist[idx].test(); ksft_test_result_pass("%s\n", testlist[idx].name); } else { |