diff mbox

Add support for MAP_NORESERVE mmap flag.

Message ID 1391443472-18030-1-git-send-email-christophe.lyon@st.com
State Superseded
Headers show

Commit Message

Christophe Lyon Feb. 3, 2014, 4:04 p.m. UTC
From: Christophe Lyon <christophe.lyon@linaro.org>

mmap_flags_tbl contains a list of mmap flags, and how to map them to
the target. This patch adds MAP_NORESERVE, which was missing to the
list.

Signed-off-by: Christophe Lyon <christophe.lyon@linaro.org>
---
 linux-user/syscall.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Peter Maydell Feb. 3, 2014, 5:46 p.m. UTC | #1
On 3 February 2014 16:04, Christophe Lyon <christophe.lyon@st.com> wrote:
> From: Christophe Lyon <christophe.lyon@linaro.org>
>
> mmap_flags_tbl contains a list of mmap flags, and how to map them to
> the target. This patch adds MAP_NORESERVE, which was missing to the
> list.
>
> Signed-off-by: Christophe Lyon <christophe.lyon@linaro.org>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
Christophe Lyon June 5, 2014, 12:23 p.m. UTC | #2
On 02/03/14 18:46, Peter Maydell wrote:
> On 3 February 2014 16:04, Christophe Lyon <christophe.lyon@st.com> wrote:
>> From: Christophe Lyon <christophe.lyon@linaro.org>
>>
>> mmap_flags_tbl contains a list of mmap flags, and how to map them to
>> the target. This patch adds MAP_NORESERVE, which was missing to the
>> list.
>>
>> Signed-off-by: Christophe Lyon <christophe.lyon@linaro.org>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
> thanks
> -- PMM

Hi,

It seems this patch has no been committed to mainline yet.
Is there anything blocking it?

Thanks

Christophe.
Peter Maydell June 5, 2014, 12:43 p.m. UTC | #3
On 5 June 2014 13:23, Christophe Lyon <christophe.lyon@st.com> wrote:
> On 02/03/14 18:46, Peter Maydell wrote:
>>
>> On 3 February 2014 16:04, Christophe Lyon <christophe.lyon@st.com> wrote:
>>>
>>> From: Christophe Lyon <christophe.lyon@linaro.org>
>>>
>>> mmap_flags_tbl contains a list of mmap flags, and how to map them to
>>> the target. This patch adds MAP_NORESERVE, which was missing to the
>>> list.
>>>
>>> Signed-off-by: Christophe Lyon <christophe.lyon@linaro.org>
>>
>> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

> It seems this patch has no been committed to mainline yet.
> Is there anything blocking it?

You didn't cc the linux-user maintainer so it probably got
lost. Riku: ping?

(patchwork url: http://patchwork.ozlabs.org/patch/316224/)

thanks
-- PMM
diff mbox

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bc0ac98..2e7df53 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4029,6 +4029,8 @@  static bitmask_transtbl mmap_flags_tbl[] = {
 	{ TARGET_MAP_DENYWRITE, TARGET_MAP_DENYWRITE, MAP_DENYWRITE, MAP_DENYWRITE },
 	{ TARGET_MAP_EXECUTABLE, TARGET_MAP_EXECUTABLE, MAP_EXECUTABLE, MAP_EXECUTABLE },
 	{ TARGET_MAP_LOCKED, TARGET_MAP_LOCKED, MAP_LOCKED, MAP_LOCKED },
+        { TARGET_MAP_NORESERVE, TARGET_MAP_NORESERVE, MAP_NORESERVE,
+          MAP_NORESERVE },
 	{ 0, 0, 0, 0 }
 };