Skip to contentSkip to conversation

Add support for MAP_NORESERVE mmap flag.

PATCH In review Christophe Lyon 2 participants 4 messages Feb 3, 2014 – Jun 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add support for MAP_NORESERVE mmap flag.

From: Christophe Lyon <[email protected]>

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.

---
 linux-user/syscall.c | 2 ++
 1 file changed, 2 insertions(+)
linux-user/syscall.c +2 -0
index bc0ac98..2e7df53 100644
@@ -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 }
 };
 
Signature · 1 line
1.8.4.1
#2 lore raw
Quoted 7 lines · Peter Maydell
Quoted 6 lines · Christophe Lyon

From: Christophe Lyon <[email protected]>

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.

Quoted 5 lines
Quoted 1 line

thanks
-- PMM

Hi,

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

Thanks

Christophe.

#3 lore raw
Quoted 10 lines · Christophe Lyon
Quoted 9 lines · Peter Maydell
Quoted 7 lines · Christophe Lyon

From: Christophe Lyon <[email protected]>

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.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

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