Re: [PATCH 1/2] mm/migrate: optimize migrate_vma_setup() for holes

2020-07-10 Thread Ralph Campbell
On 7/9/20 11:35 PM, Bharata B Rao wrote: On Thu, Jul 09, 2020 at 09:57:10AM -0700, Ralph Campbell wrote: When migrating system memory to device private memory, if the source address range is a valid VMA range and there is no memory or a zero page, the source PFN array is marked as valid but wi

Re: [PATCH 1/2] mm/migrate: optimize migrate_vma_setup() for holes

2020-07-09 Thread Bharata B Rao
On Thu, Jul 09, 2020 at 09:57:10AM -0700, Ralph Campbell wrote: > When migrating system memory to device private memory, if the source > address range is a valid VMA range and there is no memory or a zero page, > the source PFN array is marked as valid but with no PFN. This lets the > device driver

[PATCH 1/2] mm/migrate: optimize migrate_vma_setup() for holes

2020-07-09 Thread Ralph Campbell
When migrating system memory to device private memory, if the source address range is a valid VMA range and there is no memory or a zero page, the source PFN array is marked as valid but with no PFN. This lets the device driver allocate private memory and clear it, then insert the new device privat