lkml.org 
[lkml]   [2009]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 4/4] FUSE: implement direct mmap
    From
    Date
    On Sat, 04 Jul 2009, Tejun Heo wrote:
    > > Afaics sound drivers now map the dma memory with remap_pfn_range().
    > > Similary we could allocate a chunk of non-swapabble kernel memory on
    > > request from the userspace server and map its pages using this trick
    > > to both the server's and the client's address space.
    > >
    > > This is still sort of OSSP specific, I don't see clearly how it could
    > > be made more generic.
    >
    > Using non-swappable memory would be fine for most device emulations
    > but mapping large amount of pages would be problematic. Hmmm... this
    > is difficult. It's a compromise among flexibility, scalability and
    > code complexity.

    What's the difficulty?

    Allocating pages, giving them an ID and mapping them into various page
    tables seems simple in contrast to trying to make a tmpfs file be a
    fuse file at the same time, which the VM is really not prepared for.

    Thanks,
    Miklos


    \
     
     \ /
      Last update: 2009-07-06 13:45    [W:2.874 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site