Re: [Qemu-devel] [PATCH v3] linux-user: Remove extra mapping

2018-05-29 Thread Laurent Vivier
Le 29/05/2018 à 20:15, Steve Mcpolin a écrit : > When a guest mmap()'d a file, an anonymous mapping was created to > align different host and client page granularity and provide for > beyond EOF mappings. The file was then mapped ontop of this mapping, > releasing the memory reserved by it. A fil

[Qemu-devel] [PATCH v3] linux-user: Remove extra mapping

2018-05-29 Thread Steve Mcpolin
When a guest mmap()'d a file, an anonymous mapping was created to align different host and client page granularity and provide for beyond EOF mappings. The file was then mapped ontop of this mapping, releasing the memory reserved by it. A file based mmap does not reserve memory, but the anonymous