Re: [PATCH] mm/debug: Add tests validating arch page table helpers for core features

From: Christophe Leroy
Date: Thu Feb 27 2020 - 05:42:55 EST




Le 27/02/2020 Ã 11:33, Anshuman Khandual a ÃcritÂ:
This adds new tests validating arch page table helpers for these following
core memory features. These tests create and test specific mapping types at
various page table levels.

* SPECIAL mapping
* PROTNONE mapping
* DEVMAP mapping
* SOFTDIRTY mapping
* SWAP mapping
* MIGRATION mapping
* HUGETLB mapping

For testing HUGETLB mappings, you also have to include tests of hugepd functions/helpers. Not all archictures have hugepage size which matches with page tables levels (e.g. powerpc). Those architectures use hugepd_t.

Christophe