diff options
author | Peter Xu <peterx@redhat.com> | 2023-04-27 16:11:11 -0400 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-05-31 14:05:02 -0700 |
commit | ba125de35da5184c5325bef5c4c89f6928ce8875 (patch) | |
tree | 20004fc58fc4b7f2dfee062b790828df9dadd4d3 /tools/testing/selftests/kvm/lib/userfaultfd_util.c | |
parent | 56f413f2cd373d6ed7c4ecb2e0e3e740cc2fdc8c (diff) |
KVM: selftests: Setup vcpu_alias only for minor mode test
This fixes two things:
- Unbreaks MISSING mode test on anonymous memory type
- Prefault alias mem before uffd thread creations, otherwise the uffd
thread timing will be inaccurate when guest mem size is large, because
it'll take prefault time into total time.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/r/20230427201112.2164776-2-peterx@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/userfaultfd_util.c')
0 files changed, 0 insertions, 0 deletions