Hi all,
This series fixes a few issues in hmm-tests that show up when
page-size and huge-page configuration differ from the hardcoded
assumptions the tests were written for (PMD/THP sizing, default
hugepage size, and related cases).
It also includes a fix to exclusive_cow: the test ignored the return
value of fork(), so both parent and child ran the same teardown path.
Changes in v3:
- Rebased onto current mm-new.
- Patch 1: reworked the compound testcase check in response to the
Shashiko review. Instead of an ASSERT_TRUE() that ORs the PMD and
PUD cases on every page (which loses the expected/observed values on
failure and would let a fragmented PMD+PUD mapping pass), determine
the mapping level once from the first page and then enforce that every
page matches it exactly with ASSERT_EQ().
- Patch 2: Unchanged from v2.
- Patch 3: No functional change from v2.
v1: https://lore.kernel.org/all/cover.1777870179.git.aboorvad@linux.ibm.com/
v2: https://lore.kernel.org/all/cover.1779090293.git.aboorvad@linux.ibm.com/
Please let us know if you have any comments.
Thanks,
Aboorva
Aboorva Devarajan (1):
selftests/mm: fix exclusive_cow test fork() handling
Sayali Patil (2):
selftests/mm: allow PUD-level entries in compound testcase of hmm
tests
selftests/mm: remove hardcoded THP sizing assumptions in hmm tests
tools/testing/selftests/mm/hmm-tests.c | 125 +++++++++++++++++++------
1 file changed, 95 insertions(+), 30 deletions(-)
base-commit: 801c5efa788952095586d076fed1ea4902facff8
--
2.54.0