Re: [PATCH v7 5/8] mm: Device exclusive memory access
From: Jason Gunthorpe
Date: Wed Mar 31 2021 - 09:19:41 EST
On Wed, Mar 31, 2021 at 11:59:28PM +1100, Alistair Popple wrote:
> I guess that makes sense as the split could go either way at the
> moment but I should add a check to make sure this isn't used with
> pinned pages anyway.
Is it possible to have a pinned page under one of these things? If I
pin it before you migrate it then it remains pinned but hidden under
the swap entry?
So the special logic is needed and the pinned page has to be copied
and written as a normal pte, not dropped as a migration entry
Jason