Re: [Qemu-devel] [PATCH v2] linux-user: fix mmap_find_vma_reserved()

2018-07-11 Thread Richard Henderson
On 07/11/2018 01:27 PM, Laurent Vivier wrote: > Richard, > > I think this fix could be merged into your "linux-user: Fix shmat > emulation by honoring host SHMLBA" patch, by adding something like this > instead: Well, not "instead", but "in addition". Nothing works right when the guest

Re: [Qemu-devel] [PATCH v2] linux-user: fix mmap_find_vma_reserved()

2018-07-11 Thread Richard Henderson
On 07/11/2018 09:40 AM, Laurent Vivier wrote: > The value given by mmap_find_vma_reserved() is used with mmap(), > so it is needed to be aligned with the host page size. > > Since commit 18e80c55bb, reserved_va is only aligned to TARGET_PAGE_SIZE, > and it works well if this size is greater or

Re: [Qemu-devel] [PATCH v2] linux-user: fix mmap_find_vma_reserved()

2018-07-11 Thread Laurent Vivier
Le 11/07/2018 à 18:40, Laurent Vivier a écrit : > The value given by mmap_find_vma_reserved() is used with mmap(), > so it is needed to be aligned with the host page size. > > Since commit 18e80c55bb, reserved_va is only aligned to TARGET_PAGE_SIZE, > and it works well if this size is greater or