]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:48:32 +0000 (08:48 -0400)
commitdf084ef4de987d870eb958ce2e1ae97f6251109a
tree13ab7a79d594bf052f90f4909686641a42a2940d
parente4e42da589e76ca071366fce0f30b87d4ba6d02e
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