lkml.org 
[lkml]   [2017]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support
    On Fri 13-10-17 10:20:06, Cristopher Lameter wrote:
    > On Fri, 13 Oct 2017, Michal Hocko wrote:
    [...]
    > > I am not really convinced this is a good interface. You are basically
    > > trying to bypass virtual memory abstraction and that is quite
    > > contradicting the mmap API to me.
    >
    > This is a standardized posix interface as described in our presentation at
    > the plumbers conference. See the presentation on contiguous allocations.

    Are you trying to desing a generic interface with a very specific and HW
    dependent usecase in mind?

    > The contiguous allocations are particularly useful for the RDMA API which
    > allows registering user space memory with devices.

    then make those devices expose an implementation of an mmap which does
    that. You would get both a proper access control (via fd), accounting
    and others.
    --
    Michal Hocko
    SUSE Labs

    \
     
     \ /
      Last update: 2017-10-13 17:29    [W:4.828 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site