diff options
author | Vipin Sharma <[email protected]> | 2022-11-03 12:17:19 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2022-11-16 10:03:24 -0800 |
commit | d886724ea81c6a4dc5e37d4ee09287a31ab8335e (patch) | |
tree | 9a8efec469058b33158eaef207065b9f1429c382 /tools/testing/selftests/kvm/lib/test_util.c | |
parent | 0001725d0f9b5d749540021befb67c117d566416 (diff) |
KVM: selftests: Allowing running dirty_log_perf_test on specific CPUs
Add a command line option, -c, to pin vCPUs to physical CPUs (pCPUs),
i.e. to force vCPUs to run on specific pCPUs.
Requirement to implement this feature came in discussion on the patch
"Make page tables for eager page splitting NUMA aware"
https://lore.kernel.org/lkml/[email protected]/
This feature is useful as it provides a way to analyze performance based
on the vCPUs and dirty log worker locations, like on the different NUMA
nodes or on the same NUMA nodes.
To keep things simple, implementation is intentionally very limited,
either all of the vCPUs will be pinned followed by an optional main
thread or nothing will be pinned.
Signed-off-by: Vipin Sharma <[email protected]>
Suggested-by: David Matlack <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/test_util.c')
0 files changed, 0 insertions, 0 deletions