torture: Make kvm-test-1-run-qemu.sh apply affinity
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 8 Jul 2021 01:01:29 +0000 (18:01 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 27 Jul 2021 18:41:32 +0000 (11:41 -0700)
commitbdf5ca12015310e1636771a7516b08b1c30c0e73
tree66eb961f215e7c0df19cf0ec81eff1ba2a3aadab
parent8220a1184970b4ce983113cf48009fd8fea8c4a3
torture: Make kvm-test-1-run-qemu.sh apply affinity

This commit causes the kvm-test-1-run-qemu.sh script to check the
TORTURE_AFFINITY environment variable and to add "taskset" commands to
the qemu-cmd file.  The first "taskset" command is applied only if the
TORTURE_AFFINITY environment variable is a non-empty string, and this
command pins the current scenario's guest OS to the specified CPUs.
The second "taskset" command reports the guest OS's affinity in a new
"qemu-affinity" file.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-test-1-run-qemu.sh