[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 20/33] linux-user: Do early mmap placement only for reserv
|
From: |
Ilya Leoshkevich |
|
Subject: |
Re: [PATCH v3 20/33] linux-user: Do early mmap placement only for reserved_va |
|
Date: |
Mon, 29 Jan 2024 16:06:30 +0100 |
On Tue, Jan 02, 2024 at 12:57:55PM +1100, Richard Henderson wrote:
> For reserved_va, place all non-fixed maps then proceed
> as for MAP_FIXED.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> linux-user/mmap.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/linux-user/mmap.c b/linux-user/mmap.c
> index cc983bedbd..42eb3eb2b4 100644
> --- a/linux-user/mmap.c
> +++ b/linux-user/mmap.c
> @@ -540,17 +540,19 @@ static abi_long target_mmap__locked(abi_ulong start,
> abi_ulong len,
> host_offset = offset & -host_page_size;
>
> /*
> - * If the user is asking for the kernel to find a location, do that
> - * before we truncate the length for mapping files below.
> + * For reserved_va, we are in full control of the allocation.
> + * Find a suitible hole and convert to MAP_FIXED.
suitable?
[...]
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
- [PATCH v3 19/33] linux-user: Split out mmap_end, (continued)
- [PATCH v3 19/33] linux-user: Split out mmap_end, Richard Henderson, 2024/01/01
- [PATCH v3 21/33] linux-user: Split out mmap_h_eq_g, Richard Henderson, 2024/01/01
- [PATCH v3 24/33] tests/tcg: Remove run-test-mmap-*, Richard Henderson, 2024/01/01
- [PATCH v3 20/33] linux-user: Do early mmap placement only for reserved_va, Richard Henderson, 2024/01/01
- [PATCH v3 22/33] linux-user: Split out mmap_h_lt_g, Richard Henderson, 2024/01/01
- [PATCH v3 23/33] linux-user: Split out mmap_h_gt_g, Richard Henderson, 2024/01/01
- [PATCH v3 26/33] *-user: Deprecate and disable -p pagesize, Richard Henderson, 2024/01/01
- [PATCH v3 27/33] cpu: Remove page_size_init, Richard Henderson, 2024/01/01