]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use kvm_has_cap(), not kvm_check_cap(), where possible
authorSean Christopherson <seanjc@google.com>
Mon, 13 Jun 2022 16:19:42 +0000 (16:19 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2022 16:44:47 +0000 (12:44 -0400)
commit336de96fd7bf0df110d2cfdd0f9e7ebb8cc5e6c1
tree61593c3f7adf2224c51439c6598e2b7b79031929
parent1a6f4de01e02986b68fb84cf10528374dcc97bce
KVM: selftests: Use kvm_has_cap(), not kvm_check_cap(), where possible

Replace calls to kvm_check_cap() that treat its return as a boolean with
calls to kvm_has_cap().  Several instances of kvm_check_cap() were missed
when kvm_has_cap() was introduced.

Reported-by: Andrew Jones <drjones@redhat.com>
Fixes: 22d8dd02e9ed ("KVM: selftests: Add kvm_has_cap() to provide syntactic sugar")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220613161942.1586791-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/aarch64/psci_test.c
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/s390x/sync_regs_test.c
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c
tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c
tools/testing/selftests/kvm/x86_64/smm_test.c
tools/testing/selftests/kvm/x86_64/state_test.c