* + cross-memory-attach-make-it-kconfigurable.patch added to -mm tree
@ 2012-04-27 23:22 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2012-04-27 23:22 UTC (permalink / raw)
To: mm-commits; +Cc: cyeoh, yeohc
The patch titled
Subject: Cross Memory Attach: make it Kconfigurable
has been added to the -mm tree. Its filename is
cross-memory-attach-make-it-kconfigurable.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Christopher Yeoh <cyeoh@au1.ibm.com>
Subject: Cross Memory Attach: make it Kconfigurable
Add a Kconfig option to allow people who don't want cross memory attach to
not have it included in their build.
Signed-off-by: Chris Yeoh <yeohc@au1.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/Kconfig | 10 ++++++++++
mm/Makefile | 7 +++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff -puN mm/Kconfig~cross-memory-attach-make-it-kconfigurable mm/Kconfig
--- a/mm/Kconfig~cross-memory-attach-make-it-kconfigurable
+++ a/mm/Kconfig
@@ -349,6 +349,16 @@ choice
benefit.
endchoice
+config CROSS_MEMORY_ATTACH
+ bool "Cross Memory Support"
+ depends on MMU
+ default y
+ help
+ Enabling this option adds the system calls process_vm_readv and
+ process_vm_writev which allow a process with the correct privileges
+ to directly read from or write to to another process's address space.
+ See the man page for more details.
+
#
# UP and nommu archs use km based percpu allocator
#
diff -puN mm/Makefile~cross-memory-attach-make-it-kconfigurable mm/Makefile
--- a/mm/Makefile~cross-memory-attach-make-it-kconfigurable
+++ a/mm/Makefile
@@ -5,8 +5,11 @@
mmu-y := nommu.o
mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \
mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
- vmalloc.o pagewalk.o pgtable-generic.o \
- process_vm_access.o
+ vmalloc.o pagewalk.o pgtable-generic.o
+
+ifdef CONFIG_CROSS_MEMORY_ATTACH
+mmu-$(CONFIG_MMU) += process_vm_access.o
+endif
obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
maccess.o page_alloc.o page-writeback.o \
_
Subject: Subject: Cross Memory Attach: make it Kconfigurable
Patches currently in -mm which might be from cyeoh@au1.ibm.com are
cross-memory-attach-make-it-kconfigurable.patch
aio-vfs-cleanup-of-rw_copy_check_uvector-and-compat_rw_copy_check_uvector.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-27 23:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-27 23:22 + cross-memory-attach-make-it-kconfigurable.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.