KVM: s390: selftests: Fix memop extension capability check
Fix the inverted logic of the memop extension capability check.
Fixes: 97da92c0ff
("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>
This commit is contained in:
Родитель
e5380f6d75
Коммит
37f80a7c99
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче