On Tue, 16 Mar 2021, Peter Xu wrote:
>
> I'm curious whether it's okay to expand MREMAP_DONTUNMAP to PFNMAP too..
> E.g. vfio maps device MMIO regions with both VM_DONTEXPAND|VM_PFNMAP, to me it
> makes sense to allow the userspace to get such MMIO region remapped/duplicated
> somewhere else as lo
On Sat, Mar 13, 2021 at 08:19:38PM -0800, Hugh Dickins wrote:
> On Wed, 3 Mar 2021, Brian Geffon wrote:
>
> > Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This
> > change
> > will widen the support to include shmem mappings. The primary use case
> > is to support MREMAP_DON
Hi Brian, Hugh,
On 3/16/21 7:18 PM, Brian Geffon wrote:
> Hi Hugh,
> Thanks for this suggestion, responses in line.
>
>> A better patch would say:
>>
>> - if (flags & MREMAP_DONTUNMAP && (!vma_is_anonymous(vma) ||
>> - vma->vm_flags & VM_SHARED))
>> + if ((flags
Hi Hugh,
Thanks for this suggestion, responses in line.
> A better patch would say:
>
> - if (flags & MREMAP_DONTUNMAP && (!vma_is_anonymous(vma) ||
> - vma->vm_flags & VM_SHARED))
> + if ((flags & MREMAP_DONTUNMAP) &&
> + (vma->vm_flags & (VM_DONTEXPAND
On Wed, 3 Mar 2021, Brian Geffon wrote:
> Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This
> change
> will widen the support to include shmem mappings. The primary use case
> is to support MREMAP_DONTUNMAP on mappings which may have been created from
> a memfd.
>
> Lokesh
On Wed, Mar 3, 2021 at 10:13 AM Brian Geffon wrote:
>
> I apologize, this patch didn't include my signed off by, here it is:
>
> Signed-off-by: Brian Geffon
>
>
> On Wed, Mar 3, 2021 at 9:53 AM Brian Geffon wrote:
> >
> > Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This
I apologize, this patch didn't include my signed off by, here it is:
Signed-off-by: Brian Geffon
On Wed, Mar 3, 2021 at 9:53 AM Brian Geffon wrote:
>
> Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This
> change
> will widen the support to include shmem mappings. The pri
Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This change
will widen the support to include shmem mappings. The primary use case
is to support MREMAP_DONTUNMAP on mappings which may have been created from
a memfd.
Lokesh Gidra who works on the Android JVM, provided an explana
8 matches
Mail list logo