Ralph Campbell
b0fc0f3fca
mm/migrate: add migrate-shared test for migrate_vma_*()
...
Add a migrate_vma_*() self test for mmap(MAP_SHARED) to verify that
!vma_anonymous() ranges won't be migrated.
Signed-off-by: Ralph Campbell <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Cc: Jerome Glisse <[email protected] >
Cc: John Hubbard <[email protected] >
Cc: Christoph Hellwig <[email protected] >
Cc: Jason Gunthorpe <[email protected] >
Cc: "Bharata B Rao" <[email protected] >
Cc: Shuah Khan <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected] >
2020-08-12 10:57:56 -07:00
Ralph Campbell
7d17e83abe
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/[email protected]
Signed-off-by: Ralph Campbell <[email protected] >
Signed-off-by: Jason Gunthorpe <[email protected] >
2020-07-28 16:20:33 -03:00
Ralph Campbell
e478425bec
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/[email protected]
Signed-off-by: Ralph Campbell <[email protected] >
Signed-off-by: Jason Gunthorpe <[email protected] >
2020-07-10 16:24:28 -03:00
Ralph Campbell
fee9f6d1b8
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/[email protected]
Signed-off-by: Ralph Campbell <[email protected] >
Signed-off-by: Jason Gunthorpe <[email protected] >
2020-05-19 16:48:31 -03:00