aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJanis Schoetterl-Glausch2022-06-14 18:26:35 +0200
committerPaolo Bonzini2022-06-15 08:07:51 -0400
commit37f80a7c9987ff5f0a1e023dbbda2ad6b47431f7 (patch)
tree84239f0bff064c3e4703fb8bda7440c7252ece2e /tools
parente5380f6d7586ea3ef3a55d8cf19ceffacea31392 (diff)
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')
-rw-r--r--tools/testing/selftests/kvm/s390x/memop.c2
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 {