]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: Allow specify physical cpu list in demand paging test
authorPeter Xu <peterx@redhat.com>
Wed, 7 Jun 2023 00:12:26 +0000 (17:12 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 7 Jun 2023 00:29:49 +0000 (17:29 -0700)
commitd4ec586c60ab978554245c58cf432df444c93b4e
treea10b9e19a4e642504adeda1338f175c1404a7082
parentdfa78a20cc879205b2c6239300dac09907ad3da1
KVM: selftests: Allow specify physical cpu list in demand paging test

Mimic the dirty log test and allow the user to pin demand paging test
tasks to physical CPUs.

Put the help message into a general helper as suggested by Sean.

Signed-off-by: Peter Xu <peterx@redhat.com>
[sean: rebase, tweak arg ordering, add "print" to helper, print program name]
Link: https://lore.kernel.org/r/20230607001226.1398889-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/demand_paging_test.c
tools/testing/selftests/kvm/dirty_log_perf_test.c
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/kvm_util.c