KVM: selftests: Allow dumping per-vcpu info for uffd threads
authorPeter Xu <peterx@redhat.com>
Thu, 27 Apr 2023 20:11:12 +0000 (16:11 -0400)
committerSean Christopherson <seanjc@google.com>
Wed, 31 May 2023 21:05:15 +0000 (14:05 -0700)
commit21912a653d7dc9b79f3b7e9884179d7b7d593448
tree02fa8033a06f2cf272983c34ee1b8b43ea8aa4b4
parentba125de35da5184c5325bef5c4c89f6928ce8875
KVM: selftests: Allow dumping per-vcpu info for uffd threads

There's one PER_VCPU_DEBUG in per-vcpu uffd threads but it's never hit.

Trigger that when quit in normal ways (kick pollfd[1]), meanwhile fix the
number of nanosec calculation.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/r/20230427201112.2164776-3-peterx@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/userfaultfd_util.c