mm/hmm: add tests for hmm_pfn_to_map_order()
authorRalph Campbell <rcampbell@nvidia.com>
Wed, 1 Jul 2020 22:53:52 +0000 (15:53 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 10 Jul 2020 19:24:28 +0000 (16:24 -0300)
commite478425bec930e9368c6efdc78d2e5d85eadc18e
tree59e9ec45cd3976e7ed79d083b17e379e39e62628
parent3b50a6e536d2d843857ffe5f923eff7be4222afe
mm/hmm: add tests for hmm_pfn_to_map_order()

Add a sanity test for hmm_range_fault() returning the page mapping size
order.

Link: https://lore.kernel.org/r/20200701225352.9649-6-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
lib/test_hmm.c
lib/test_hmm_uapi.h
tools/testing/selftests/vm/hmm-tests.c