]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b9b11dc8800feb9932ae22a95f1d299c2fb9fb1
tree6655f3ffdc7c21652ff27ba57306b2f1d6aeb245
parent45fa3b6d191bc1036601563288ecd6a4983e7671
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