RE: [PATCH v2] mm: re-allow pinning of zero pfns (again)

Laba, SlawomirX
2022-08-26T19:01:43Z

> Subject: [PATCH v2] mm: re-allow pinning of zero pfns (again)
>
> The below referenced commit makes the same error as 1c563432588d ("mm:
> fix is_pinnable_page against a cma page"), re-interpreting the logic to
> exclude pinning of the zero page, which breaks device assignment with vfio.
>
> To avoid further subtle mistakes, split the logic into discrete tests.
>
> Suggested-by: Matthew Wilcox <willy@infradead.org>
> Suggested-by: Felix Kuehling <felix.kuehling@amd.com>
> Link:
> https://lore.kernel.org/all/165490039431.944052.12458624139225785964.stgit
> @omen
> Fixes: f25cbb7a95a2 ("mm: add zone device coherent type memory
> support")
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---

Tested-by: Slawomir Laba <slawomirx.laba@intel.com>