Access to graphics memory mappings on upcoming WOW64 implementation

Zebediah Figura zfigura at codeweavers.com
Mon Apr 25 13:20:52 CDT 2022


>> - Crazy idea: On Linux, parse /proc/self/maps to allow remapping 
>> non-anonymous pages. Combined with mremap(2) or manual emulation, this 
>> allows mapping everything except for shared anonymous pages [and I 
>> can't imagine that a GPU driver would use those, especially given that 
>> the only way to make use of the SHARED flag is fork(2)].
> Would this still work if the driver closed the FD after mmap-ing it?

Yes, procfs still displays the mapping in that case. Note that what's 
listed is the path (and inode), so we would reopen the path and then map it.



More information about the wine-devel mailing list