linux-xiaomi-chiron/tools/testing/selftests/kvm/include
Ben Gardon 1eafbd27ed KVM: selftests: Simplify demand_paging_test with timespec_diff_now
Add a helper function to get the current time and return the time since
a given start time. Use that function to simplify the timekeeping in the
demand paging test.

This series was tested by running the following invocations on an Intel
Skylake machine:
dirty_log_perf_test -b 20m -i 100 -v 64
dirty_log_perf_test -b 20g -i 5 -v 4
dirty_log_perf_test -b 4g -i 5 -v 32
demand_paging_test -b 20m -v 64
demand_paging_test -b 20g -v 4
demand_paging_test -b 4g -v 32
All behaved as expected.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20201027233733.1484855-4-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-11-08 06:03:35 -05:00
..
aarch64 kvm: selftests: introduce aarch64_vcpu_add_default 2019-06-05 14:14:45 +02:00
s390x KVM: selftests: Add processor code for s390x 2019-06-04 14:05:38 +02:00
x86_64 selftests: kvm: test enforcement of paravirtual cpuid features 2020-11-08 06:02:16 -05:00
evmcs.h KVM: selftests: Fix build for evmcs.h 2020-05-06 06:51:36 -04:00
kvm_util.h KVM: selftests: Add aarch64 get-reg-list test 2020-11-08 06:02:45 -05:00
perf_test_util.h KVM: selftests: Remove address rounding in guest code 2020-11-08 06:03:34 -05:00
sparsebit.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 482 2019-06-19 17:09:52 +02:00
test_util.h KVM: selftests: Simplify demand_paging_test with timespec_diff_now 2020-11-08 06:03:35 -05:00