mm/hmm/test: use the new migration invalidation
authorRalph Campbell <rcampbell@nvidia.com>
Thu, 23 Jul 2020 22:30:03 +0000 (15:30 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 28 Jul 2020 19:20:33 +0000 (16:20 -0300)
commit7d17e83abec1be3355260b3e4812044c65c32907
tree4115d8e16f9b420235d7d4c0cefa0130918e29c0
parentf8477ce6b5923ef9829e32f2165ea9c2b4b754d2
mm/hmm/test: use the new migration invalidation

Use the new MMU_NOTIFY_MIGRATE event to skip MMU invalidations of device
private memory and handle the invalidation in the driver as part of
migrating device private memory.

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