Re: [PATCH] linux-user:Fix align mistake when mmap guest space

2019-12-19 Thread Laurent Vivier
Le 13/12/2019 à 03:29, Xinyu Li a écrit : > In init_guest_space, we need to mmap guest space. If the return address > of first mmap is not aligned with align, which was set to MAX(SHMLBA, > qemu_host_page_size), we need unmap and a new mmap(space is larger than > first size). The new size is named

Re: [PATCH] linux-user:Fix align mistake when mmap guest space

2019-12-18 Thread Richard Henderson
On 12/12/19 11:00 PM, Laurent Vivier wrote: > Le 13/12/2019 à 03:29, Xinyu Li a écrit : >> In init_guest_space, we need to mmap guest space. If the return address >> of first mmap is not aligned with align, which was set to MAX(SHMLBA, >> qemu_host_page_size), we need unmap and a new mmap(space is

Re: [PATCH] linux-user:Fix align mistake when mmap guest space

2019-12-13 Thread Laurent Vivier
Le 13/12/2019 à 03:29, Xinyu Li a écrit : > In init_guest_space, we need to mmap guest space. If the return address > of first mmap is not aligned with align, which was set to MAX(SHMLBA, > qemu_host_page_size), we need unmap and a new mmap(space is larger than > first size). The new size is named

[PATCH] linux-user:Fix align mistake when mmap guest space

2019-12-12 Thread Xinyu Li
In init_guest_space, we need to mmap guest space. If the return address of first mmap is not aligned with align, which was set to MAX(SHMLBA, qemu_host_page_size), we need unmap and a new mmap(space is larger than first size). The new size is named real_size, which is aligned_size + qemu_host_page_