Re: [PATCH] linux-user: Passthrough MADV_DONTNEED for certain file mappings

2022-07-25 Thread Laurent Vivier
Le 01/07/2022 à 15:52, 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

[PATCH] linux-user: Passthrough MADV_DONTNEED for certain file mappings

2022-07-01 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