Hello, Richard, le lun. 12 oct. 2026 02:25:45 +0800, a ecrit: > I am considering porting selected Linux VM tests to GNU Mach/Hurd and > would like to ask for feedback before starting the work. > > I reviewed the existing gnumach/tests/test-vm.c and Hurd's > benchmarks/forks.c. > > The former mainly covers memory-object mapping, wiring, and VM > address-space limits.
gnumach/tests is meant to exercise the gnumach API indeed. > The latter measures fork/wait overhead. Yes, that's just a benchmark. > I would like to add tests for COW isolation correctness, page faults, > and mapping performance, to provide regression coverage for future VM > changes. That can be useful indeed > As a first step, I would select suitable tests from Linux's > tools/testing/selftests/mm, beginning with the basic parent/child COW > tests in cow.c. There is a *lot* in there that is linux-specific, I don't think you can reuse much code from it. You might be better off just reimplementing something from scratch, using the gnumach API. > Any reused code would retain its applicable license and copyright > notices. Yes, and that can pose licensing issues. gnumach is composed of either BSD source code (thus no real licensing issue), or GPL source code with copyright assigned to the FSF. Integrating GPL code whose copyright was not assigned to FSF will be problematic. Samuel
