[PATCH v2 0/2] KVM: selftest: Fix steal time w/ non-glibc builds

From: Sean Christopherson

Date: Tue Jul 07 2026 - 11:29:59 EST


Remove unnecessary usage of pthread_attr_setaffinity_np() in the steal time
test so that it can build against non-glibc libraries, and opportunistically
expand the test coverage by pinning the test threads to a random pCPU instead
of hardcoding the pin to pCPU0.

v2:
- Rely on CPU affinity inheritance. [Sashiko]
- Add a patch to in to a random CPU instead of CPU0.

v1: https://lore.kernel.org/all/20260706163649.155548-1-hisamshar@xxxxxxxxx


Sean Christopherson (2):
KVM: selftests: Drop superfluous use of pthread_attr_setaffinity_np()
KVM: selftests: Randomize pCPU in steal time test

tools/testing/selftests/kvm/steal_time.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)


base-commit: a204badd8432f93b7e862e7dac6db0fe3d65f370
--
2.55.0.rc2.803.g1fd1e6609c-goog