linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Add compatibility fixes for KVM selftests with non-glibc C libraries
@ 2025-09-02 17:01 Aqib Faruqui
  2025-09-02 17:01 ` [PATCH v2 1/7] selftests/pidfd: Add architecture-specific fallback definitions for pidfd_open Aqib Faruqui
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Aqib Faruqui @ 2025-09-02 17:01 UTC (permalink / raw)
  To: Christian Brauner, linux-kernel; +Cc: nh-open-source, aqibaf

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(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-02 17:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 17:01 [PATCH v2 0/7] Add compatibility fixes for KVM selftests with non-glibc C libraries Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 1/7] selftests/pidfd: Add architecture-specific fallback definitions for pidfd_open Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 2/7] selftests: harness: Include pidfd.h to get syscall definitions from tools/ Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 3/7] selftests: kselftest: Add memfd_create syscall compatibility Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 4/7] KVM: selftests: Add backtrace fallback Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 5/7] rseq: selftests: Add non-glibc compatibility fixes Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 6/7] selftests: Fix stdbuf compatibility in mixed libc environments Aqib Faruqui
2025-09-02 17:01 ` [PATCH v2 7/7] selftests: kselftest: Add ulong typedef for non-glibc compatibility Aqib Faruqui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).