Re: [PATCH v4 06/13] selftests: KVM: Fix kvm device helper ioctl assertions

2021-07-29 Thread Andrew Jones
On Thu, Jul 29, 2021 at 12:10:05AM +, Oliver Upton wrote: > The KVM_CREATE_DEVICE and KVM_{GET,SET}_DEVICE_ATTR ioctls are defined > to return a value of zero on success. As such, tighten the assertions in > the helper functions to only pass if the return code is zero. > > Suggested-by:

[PATCH v4 06/13] selftests: KVM: Fix kvm device helper ioctl assertions

2021-07-28 Thread Oliver Upton
The KVM_CREATE_DEVICE and KVM_{GET,SET}_DEVICE_ATTR ioctls are defined to return a value of zero on success. As such, tighten the assertions in the helper functions to only pass if the return code is zero. Suggested-by: Andrew Jones Signed-off-by: Oliver Upton ---