Re: [PATCH v3 4/5] linux-user: Passthrough MADV_DONTNEED for certain file mappings

2022-09-23 Thread Laurent Vivier
Le 06/09/2022 à 02:08, Ilya Leoshkevich a écrit : This is a follow-up for commit 892a4f6a750a ("linux-user: Add partial support for MADV_DONTNEED"), which added passthrough for anonymous mappings. File mappings can be handled in a similar manner. In order to do that, mark pages, for which mmap()

[PATCH v3 4/5] linux-user: Passthrough MADV_DONTNEED for certain file mappings

2022-09-05 Thread Ilya Leoshkevich
This is a follow-up for commit 892a4f6a750a ("linux-user: Add partial support for MADV_DONTNEED"), which added passthrough for anonymous mappings. File mappings can be handled in a similar manner. In order to do that, mark pages, for which mmap() was passed through, with PAGE_PASSTHROUGH, and then