Re: [RFC 05/18] pkernfs: add file mmap callback

2024-02-05 Thread Dave Chinner
On Mon, Feb 05, 2024 at 12:01:50PM +, James Gowans wrote: > Make the file data useable to userspace by adding mmap. That's all that > QEMU needs for guest RAM, so that's all be bother implementing for now. > > When mmaping the file the VMA is marked as PFNMAP to indicate that there > are no

[RFC 05/18] pkernfs: add file mmap callback

2024-02-05 Thread James Gowans
Make the file data useable to userspace by adding mmap. That's all that QEMU needs for guest RAM, so that's all be bother implementing for now. When mmaping the file the VMA is marked as PFNMAP to indicate that there are no struct pages for the memory in this VMA. Remap_pfn_range() is used to