Commit 37f80a7c authored by Janis Schoetterl-Glausch's avatar Janis Schoetterl-Glausch Committed by Paolo Bonzini

KVM: s390: selftests: Fix memop extension capability check

Fix the inverted logic of the memop extension capability check.

Fixes: 97da92c0 ("KVM: s390: selftests: Use TAP interface in the memop test")
Signed-off-by: default avatarJanis Schoetterl-Glausch <scgl@linux.ibm.com>
Message-Id: <20220614162635.3445019-1-scgl@linux.ibm.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent e5380f6d
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment