[RFC] [PATCH 0/5 V2] Huge page backed user-space stacks

2008-07-28 Thread Eric Munson
is to be backed by hugetlb pages. Eric Munson (5): Align stack boundaries based on personality Add shared and reservation control to hugetlb_file_setup Split boundary checking from body of do_munmap Build hugetlb backed process stacks [PPC] Setup stack memory segment for hugetlb pages arch

[PATCH 4/5 V2] Build hugetlb backed process stacks

2008-07-28 Thread Eric Munson
is mmapped. Signed-off-by: Eric Munson [EMAIL PROTECTED] --- Based on 2.6.26-rc8-mm1 Changes from V1: Add comment about not padding huge stacks Break personality_page_align helper and personality flag into separate patch Add move_to_huge_pages function that moves the stack onto huge pages Add

[PATCH 1/5 V2] Align stack boundaries based on personality

2008-07-28 Thread Eric Munson
Whitcroft [EMAIL PROTECTED] Signed-off-by: Eric Munson [EMAIL PROTECTED] --- Based on 2.6.26-rc8-mm1 Changes from V1: Rebase to 2.6.26-rc8-mm1 fs/exec.c | 15 ++- include/linux/hugetlb.h |3 +++ include/linux/personality.h |3 +++ 3 files changed, 20

[PATCH 3/5] Split boundary checking from body of do_munmap

2008-07-28 Thread Eric Munson
. unmapping a stack that was setup at 64 bit TASK_SIZE for a 32 bit process) __do_munmap should be called directly. do_munmap will continue to do the boundary checking and will call __do_munmap as appropriate. Signed-off-by: Eric Munson [EMAIL PROTECTED] --- Based on 2.6.26-rc8-mm1 include/linux/mm.h

[PATCH 2/5 V2] Add shared and reservation control to hugetlb_file_setup

2008-07-28 Thread Eric Munson
this behavior by specifying flags for private inodes and page reservations. Signed-off-by: Eric Munson [EMAIL PROTECTED] --- Based on 2.6.26-rc8-mm1 Changes from V1: Add creat_flags to struct hugetlbfs_inode_info Check if space should be reserved in hugetlbfs_file_mmap Rebase to 2.6.26-rc8-mm1 fs

[PATCH 5/5 V2] [PPC] Setup stack memory segment for hugetlb pages

2008-07-28 Thread Eric Munson
Currently the memory slice that holds the process stack is always initialized to hold small pages. This patch defines the weak function that is declared in the previos patch to convert the stack slice to hugetlb pages. Signed-off-by: Eric Munson [EMAIL PROTECTED] --- Based on 2.6.26-rc8-mm1

[PATCH V3] Keep 3 high personality bytes across exec

2008-06-30 Thread Eric Munson
Currently when a 32 bit process is exec'd on a powerpc 64 bit host the value in the top three bytes of the personality is clobbered. This patch adds a check in the SET_PERSONALITY macro that will carry all the values in the top three bytes across the exec. These three bytes currently carry flags