KVM: selftests: Setup vcpu_alias only for minor mode test
authorPeter Xu <peterx@redhat.com>
Thu, 27 Apr 2023 20:11:11 +0000 (16:11 -0400)
committerSean Christopherson <seanjc@google.com>
Wed, 31 May 2023 21:05:02 +0000 (14:05 -0700)
commitba125de35da5184c5325bef5c4c89f6928ce8875
tree20004fc58fc4b7f2dfee062b790828df9dadd4d3
parent56f413f2cd373d6ed7c4ecb2e0e3e740cc2fdc8c
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>
tools/testing/selftests/kvm/demand_paging_test.c