mm/hmm/test: add selftests for HMM
authorRalph Campbell <rcampbell@nvidia.com>
Wed, 22 Apr 2020 19:50:27 +0000 (12:50 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 19:48:31 +0000 (16:48 -0300)
commitfee9f6d1b8df35ce4ec14a49f27a7d9e4e06fd57
treeaefa0797ab701e1ab486445584fa598120078091
parentb2ef9f5a5cb37643ca5def3516c546457074b882
mm/hmm/test: add selftests for HMM

Add some basic stand alone self tests for HMM.
The test program and shell scripts use the test_hmm.ko driver to exercise
HMM functionality in the kernel.

Link: https://lore.kernel.org/r/20200422195028.3684-3-rcampbell@nvidia.com
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
tools/testing/selftests/vm/.gitignore
tools/testing/selftests/vm/Makefile
tools/testing/selftests/vm/config
tools/testing/selftests/vm/hmm-tests.c [new file with mode: 0644]
tools/testing/selftests/vm/run_vmtests
tools/testing/selftests/vm/test_hmm.sh [new file with mode: 0755]