Skip to content

KVM: selftest: Fix steal time w/ non-glibc builds

Sean Christopherson kvm lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: selftests: Drop superfluous use of pthread_attr_setaffinity_np()tools/testing/selftests/kvm/steal_time.c+5 -41 reply
2/2KVM: selftests: Randomize pCPU in steal time testtools/testing/selftests/kvm/steal_time.c+3 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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/[email protected]

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

Signature · 1 line
2.55.0.rc2.803.g1fd1e6609c-goog