KVM: selftests: Fix kvm_check_cap() assertion
authorFuad Tabba <tabba@google.com>
Tue, 15 Jun 2021 15:04:43 +0000 (16:04 +0100)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:22 +0000 (08:47 -0400)
commit4658a8d3079137d8d407892bdc95b390a419c261
tree8e3256f744edf30c399d8eeba14a0dfd66944633
parente83e3c5d85a70f9f6b52ede2aa9ed55b57879656
KVM: selftests: Fix kvm_check_cap() assertion

[ Upstream commit d8ac05ea13d789d5491a5920d70a05659015441d ]

KVM_CHECK_EXTENSION ioctl can return any negative value on error,
and not necessarily -1. Change the assertion to reflect that.

Signed-off-by: Fuad Tabba <tabba@google.com>
Message-Id: <20210615150443.1183365-1-tabba@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kvm/lib/kvm_util.c