torture: Make kvm.sh select per-scenario affinity masks
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 7 Jul 2021 22:49:40 +0000 (15:49 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 27 Jul 2021 18:40:30 +0000 (11:40 -0700)
commitcdeef67d8feddbfe230bd0b95379e0487651a0e0
treed72ef0fe66ff35c8974d128c3d908bbd5de440dc
parenta3d794129e34dcd2b9757e0ff44b97429fd369a0
torture: Make kvm.sh select per-scenario affinity masks

This commit causes kvm.sh to use the new kvm-assign-cpus.sh and
kvm-get-cpus-script.sh scripts to create a TORTURE_AFFINITY environment
variable containing either an empty string (for no affinity) or a list
of CPUs to pin the scenario's vCPUs to.  A later commit will make
use of this information to actually pin the vCPUs.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-assign-cpus.sh [new file with mode: 0755]
tools/testing/selftests/rcutorture/bin/kvm-get-cpus-script.sh [new file with mode: 0755]
tools/testing/selftests/rcutorture/bin/kvm-test-1-run-batch.sh
tools/testing/selftests/rcutorture/bin/kvm.sh