Add a new src_owner field to struct migrate_vma. If the field is set, only device private pages with page->pgmap->owner equal to that field are migrated. If the field is not set only "normal" pages are migrated.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -196,6 +196,14 @@ struct migrate_vma { · 195 unmodified lines | ||
| 196 | 196 | unsigned long npages; |
| 197 | 197 | unsigned long start; |
| 198 | 198 | unsigned long end; |
| 199 | + | |
| 200 | + /* | |
| 201 | + * Set to the owner value also stored in page->pgmap->owner for | |
| 202 | + * migrating out of device private memory. If set only device | |
| 203 | + * private pages with this owner are migrated. If not set | |
| 204 | + * device private pages are not migrated at all. | |
| 205 | + */ | |
| 206 | + void *src_owner; | |
| 199 | 207 | }; |
| 200 | 208 | |
| 201 | 209 | int migrate_vma_setup(struct migrate_vma *args); |