]> 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)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:06:57 +0000 (13:06 -0400)
commite280d655c7874f76b512fdc02e0e660c7b475d1b
tree4d39c70d56270a4740643ec80f020ac5924a50a1
parent6e86b55a70b0dd4412c7f26dde60c171fd93e8f5
KVM: selftests: Fix kvm_check_cap() assertion

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>
tools/testing/selftests/kvm/lib/kvm_util.c