Re: [PATCH v2] linux-user: Add partial support for MADV_DONTNEED

2022-06-21 Thread Laurent Vivier
Le 21/06/2022 à 16:42, Ilya Leoshkevich a écrit : Currently QEMU ignores madvise(MADV_DONTNEED), which break apps that rely on this for zeroing out memory [1]. Improve the situation by doing a passthrough when the range in question is a host-page-aligned anonymous mapping. This is based on the p

[PATCH v2] linux-user: Add partial support for MADV_DONTNEED

2022-06-21 Thread Ilya Leoshkevich
Currently QEMU ignores madvise(MADV_DONTNEED), which break apps that rely on this for zeroing out memory [1]. Improve the situation by doing a passthrough when the range in question is a host-page-aligned anonymous mapping. This is based on the patches from Simon Hausmann [2] and Chris Fallin [3].