[PATCH v6 01/13] mm/migrate_device: Introduce migrate_pfn_from_page() helper
David Hildenbrand (Arm)
david at kernel.org
Sat Feb 28 08:11:00 AEDT 2026
On 2/2/26 12:36, Jordan Niethe wrote:
> To create a migrate entry from a given struct page, that page is first
> converted to its pfn, before passing the pfn to migrate_pfn().
>
> A future change will remove device private pages from the physical
> address space. This will mean that device private pages no longer have a
> pfn and must be handled separately.
>
> Prepare for this with a new helper:
>
> - migrate_pfn_from_page()
>
> This helper takes a struct page as parameter instead of a pfn. This will
> allow more flexibility for handling the mpfn differently for device
> private pages.
>
> Reviewed-by: Balbir Singh <balbirs at nvidia.com>
> Acked-by: Felix Kuehling <felix.kuehling at amd.com>
> Signed-off-by: Jordan Niethe <jniethe at nvidia.com>
> ---
Acked-by: David Hildenbrand (Arm) <david at kernel.org>
--
Cheers,
David
More information about the Linuxppc-dev
mailing list