linux-pinenote/arch/score/include/asm
Laurent Dufour 2ae416b142 mm: new mm hook framework
CRIU is recreating the process memory layout by remapping the checkpointee
memory area on top of the current process (criu).  This includes remapping
the vDSO to the place it has at checkpoint time.

However some architectures like powerpc are keeping a reference to the
vDSO base address to build the signal return stack frame by calling the
vDSO sigreturn service.  So once the vDSO has been moved, this reference
is no more valid and the signal frame built later are not usable.

This patch serie is introducing a new mm hook framework, and a new
arch_remap hook which is called when mremap is done and the mm lock still
hold.  The next patch is adding the vDSO remap and unmap tracking to the
powerpc architecture.

This patch (of 3):

This patch introduces a new set of header file to manage mm hooks:
- per architecture empty header file (arch/x/include/asm/mm-arch-hooks.h)
- a generic header (include/linux/mm-arch-hooks.h)

The architecture which need to overwrite a hook as to redefine it in its
header file, while architecture which doesn't need have nothing to do.

The default hooks are defined in the generic header and are used in the
case the architecture is not defining it.

In a next step, mm hooks defined in include/asm-generic/mm_hooks.h should
be moved here.

Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-06-24 17:49:41 -07:00
..
asm-offsets.h score: add asm/asm-offsets.h wrapper 2009-12-12 13:08:16 +01:00
asmmacro.h
atomic.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
bitops.h arch,score: Convert smp_mb__*() 2014-04-18 14:20:43 +02:00
bug.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
bugs.h
cache.h
cacheflush.h score: add flush_dcahce_page and PG_dcache_dirty define 2009-12-17 18:28:31 +08:00
checksum.h Score: Implement the function csum_ipv6_magic 2013-09-26 03:46:03 +08:00
cmpxchg.h arch: Remove __ARCH_HAVE_CMPXCHG 2015-05-13 10:55:42 +02:00
current.h
delay.h score: include asm-generic/param.h in asm/delay.h. 2009-12-17 18:31:23 +08:00
device.h
div64.h
dma.h
elf.h default SET_PERSONALITY() in linux/elf.h 2013-02-26 02:46:08 -05:00
emergency-restart.h
exec.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
fixmap.h
ftrace.h
futex.h
hardirq.h
hw_irq.h
io.h Score: The commit is for compiling successfully. 2013-09-26 03:46:03 +08:00
irq.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
irq_regs.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
irqflags.h score: lost a semicolon in asm/irqflags.h 2011-03-28 12:02:20 +08:00
Kbuild net, lib: kill arch_fast_hash library bits 2014-12-10 15:17:46 -05:00
kdebug.h
kmap_types.h
linkage.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
local.h
local64.h arch: Implement local64_t 2010-06-09 11:12:36 +02:00
mm-arch-hooks.h mm: new mm hook framework 2015-06-24 17:49:41 -07:00
mmu.h
mmu_context.h
module.h Make most arch asm/module.h files use asm-generic/module.h 2012-09-28 14:31:03 +09:30
mutex.h
page.h score: fixed pfn_valid define. 2009-12-17 18:28:31 +08:00
pci.h
percpu.h
pgalloc.h score: handle pgtable_page_ctor() fail 2013-11-15 09:32:18 +09:00
pgtable-bits.h score: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:33 -08:00
pgtable.h mm: make FIRST_USER_ADDRESS unsigned long on all archs 2015-02-11 17:06:03 -08:00
processor.h arch, locking: Ciao arch_mutex_cpu_relax() 2014-07-17 12:32:47 +02:00
ptrace.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-12-20 18:05:28 -08:00
scoreregs.h
segment.h
setup.h UAPI: (Scripted) Disintegrate arch/score/include/asm 2012-12-20 10:55:33 +00:00
shmparam.h
string.h
switch_to.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
syscalls.h score: switch to generic sigaltstack 2013-02-03 18:16:15 -05:00
thread_info.h arch: Remove exec_domain from remaining archs 2015-04-12 21:03:30 +02:00
timex.h
tlb.h
tlbflush.h
topology.h
uaccess.h mm/uaccess, mm/fault: Clarify that uaccess may only sleep if pagefaults are enabled 2015-05-19 08:39:14 +02:00
ucontext.h score: add missing #includes 2009-06-27 15:09:46 +02:00
unaligned.h
user.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00