Re: [PATCH] mm/hmm/test: destroy xa_array instead of looping

2020-05-15 Thread Ralph Campbell
On 5/15/20 4:15 PM, Jason Gunthorpe wrote: On Wed, May 13, 2020 at 02:45:07PM -0700, Ralph Campbell wrote: The test driver uses an xa_array to store virtual to physical address translations for a simulated hardware device. The MMU notifier invalidation callback is used to keep the table consis

Re: [PATCH] mm/hmm/test: destroy xa_array instead of looping

2020-05-15 Thread Jason Gunthorpe
On Wed, May 13, 2020 at 02:45:07PM -0700, Ralph Campbell wrote: > The test driver uses an xa_array to store virtual to physical address > translations for a simulated hardware device. The MMU notifier > invalidation callback is used to keep the table consistent with the CPU > page table and is freq

[PATCH] mm/hmm/test: destroy xa_array instead of looping

2020-05-13 Thread Ralph Campbell
The test driver uses an xa_array to store virtual to physical address translations for a simulated hardware device. The MMU notifier invalidation callback is used to keep the table consistent with the CPU page table and is frequently called only for a page or two. However, if the test process exits