]> git.baikalelectronics.ru Git - kernel.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:47:49 +0000 (08:47 -0400)
commit990eced69892c9debbd550cb41e96401971fe747
treeb8b5ca689a24eb8c015323624547bcf3d87f20a8
parenta3356ee44b32b72f08b1fe2bc3669dcea0f631df
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