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

2022-09-05 Thread Richard Henderson
On 9/1/22 09:45, Ilya Leoshkevich wrote: +/* + * For linux-user, indicates that the page is mapped with the same semantics + * in both guest and host. + */ +#define PAGE_PASSTHROUGH 0x0800 I would expect a change to PAGE_STICKY in accel/tcg/translate-all.c, so that this bit is preserved

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

2022-09-01 Thread Ilya Leoshkevich
In this case passthrough is safe, > so do it. >   */ > mmap_lock(); >      if ((advice & MADV_DONTNEED) && I would like to ping this patch and two others that I used for debugging it: [PATCH] linux-user: Fix stracing in-memory mmap arguments https://patchew.org/QEMU/20220630165901.2459135-1-...@linux.ibm.com/ [PATCH] linux-user: Implement stracing madvise() https://patchew.org/QEMU/20220725134440.172892-1-...@linux.ibm.com/ [PATCH v2] linux-user: Passthrough MADV_DONTNEED for certain file mappings https://patchew.org/QEMU/20220725125043.43048-1-...@linux.ibm.com/

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

2022-08-11 Thread Ilya Leoshkevich
On Mon, 2022-07-25 at 14:50 +0200, Ilya Leoshkevich wrote: > 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

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

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