Re: [PATCH v1 03/14] mm: add iomem vma selection for memory migration

From
Christoph Hellwig <hch@lst.de>
Date
2021-08-25 07:46:07
Also in
amd-gfx, linux-mm, linux-xfs
Reply to
Alex Sierra, 2021-08-25
On Tue, Aug 24, 2021 at 10:48:17PM -0500, Alex Sierra wrote:
quoted hunk ↗ jump to hunk
 		} else {
-			if (!(migrate->flags & MIGRATE_VMA_SELECT_SYSTEM))
+			if (!(migrate->flags & MIGRATE_VMA_SELECT_SYSTEM) &&
+			    !(migrate->flags & MIGRATE_VMA_SELECT_IOMEM))
 				goto next;
 			pfn = pte_pfn(pte);
 			if (is_zero_pfn(pfn)) {
.. also how is this going to work for the device public memory?  That
should be pte_special() an thus fail vm_normal_page.
Thread (42 messages) 42 messages, 9 authors, last reply 2021-09-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help