Add compatibility fixes for KVM selftests with non-glibc C libraries
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 0 repliesNew
- v19 patches 8 repliesSuperseded
Changes in v2 from the cover letter
- Split pidfd patch into two separate commits
- Dropped PAGE_SIZE redefinition patch - will root cause warning separately
- Dropped __packed fallback patch - tools infrastructure already handles this correctly
- Dropped pthread_attr_setaffinity_np patch - maintainer provided solution
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | selftests/pidfd: Add architecture-specific fallback definitions for pidfd_opentools/ | +4 | 0 replies | |
| 2/7 | selftests: harness: Include pidfd.h to get syscall definitions from tools/tools/ | +1 | 0 replies | |
| 3/7 | selftests: kselftest: Add memfd_create syscall compatibilitytools/ tools/ | +20 | 0 replies | |
| 4/7 | KVM: selftests: Add backtrace fallbacktools/ | +9 | 0 replies | |
| 5/7 | rseq: selftests: Add non-glibc compatibility fixestools/ tools/ | +22 | 0 replies | |
| 6/7 | selftests: Fix stdbuf compatibility in mixed libc environmentstools/ | +1 | 0 replies | |
| 7/7 | selftests: kselftest: Add ulong typedef for non-glibc compatibilitytools/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/7] Add compatibility fixes for KVM selftests with non-glibc C libraries
This patch series adds compatibility fixes for building and running KVM selftests with musl and other non-glibc implementations. The changes address missing function definitions, syscall numbers, macros, type definitions, and runtime compatibility issues that are otherwise handled by glibc.
The series includes both build-time compatibility fixes (missing definitions, type mismatches) and runtime fixes (stdbuf compatibility in mixed libc environments) to ensure KVM selftests work correctly across different C library implementations.
Changes in v2:
- Split pidfd patch into two separate commits
- Dropped PAGE_SIZE redefinition patch - will root cause warning separately
- Dropped __packed fallback patch - tools infrastructure already handles this correctly
- Dropped pthread_attr_setaffinity_np patch - maintainer provided solution
Aqib Faruqui (7):
selftests/pidfd: Add architecture-specific fallback definitions for
pidfd_open
selftests: harness: Include pidfd.h to get syscall definitions from
tools/
selftests: kselftest: Add memfd_create syscall compatibility
KVM: selftests: Add backtrace fallback
rseq: selftests: Add non-glibc compatibility fixes
selftests: Fix stdbuf compatibility in mixed libc environments
selftests: kselftest: Add ulong typedef for non-glibc compatibility
tools/testing/selftests/kselftest.h | 24 ++++++++++++++++++++++++ tools/testing/selftests/kselftest/runner.sh | 2 +- tools/testing/selftests/kselftest_harness.h | 1 + tools/testing/selftests/kvm/lib/assert.c | 10 +++++++++- tools/testing/selftests/kvm/lib/kvm_util.c | 1 + tools/testing/selftests/pidfd/pidfd.h | 4 ++++ tools/testing/selftests/rseq/rseq-x86-thread-pointer.h | 14 ++++++++++++++ tools/testing/selftests/rseq/rseq.c | 8 ++++++++ 8 files changed, 62 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.3