The first patch is a couple changes to steal_time that came to mind after posting. The second one reworks the timespec functions and their use. It then applies them to the fixing of the stop condition of steal_time:do_steal_time v2: - Drank a cup of coffee and discovered division... Use division instead of loop in timespec_add_ns. Andrew Jones (2): fixup! KVM: selftests: Introduce steal-time test KVM: selftests: Rework timespec functions and usage .../selftests/kvm/demand_paging_test.c | 37 ++++++++---------- .../testing/selftests/kvm/include/test_util.h | 3 +- tools/testing/selftests/kvm/lib/test_util.c | 37 ++++++++---------- tools/testing/selftests/kvm/steal_time.c | 39 +++++++++---------- 4 files changed, 52 insertions(+), 64 deletions(-) -- 2.21.1