KVM: selftests: Add configurable demand paging delay
authorBen Gardon <bgardon@google.com>
Thu, 20 Feb 2020 17:09:59 +0000 (18:09 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:56:58 +0000 (17:56 +0100)
commit0119cb365c93621535187c7527486c3b378a622d
tree6655f3ffdc7c21652ff27ba57306b2f1d6aeb245
parent4f72180eb4da9ce0bad2f284e81875bb15ecfbb7
KVM: selftests: Add configurable demand paging delay

When running the demand paging test with the -u option, the User Fault
FD handler essentially adds an arbitrary delay to page fault resolution.
To enable better simulation of a real demand paging scenario, add a
configurable delay to the UFFD handler.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/demand_paging_test.c