linux_dsm_epyc7002/arch/openrisc/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
..
bitops OpenRISC: Headers 2011-07-22 18:46:39 +02:00
asm-offsets.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
bitops.h arch,openrisc: Convert smp_mb__*() 2014-04-18 14:20:40 +02:00
cache.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
cpuinfo.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
delay.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
dma-mapping.h openrisc: provide dma_map_ops 2012-05-08 11:43:51 +02:00
elf.h default SET_PERSONALITY() in linux/elf.h 2013-02-26 02:46:08 -05:00
fixmap.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
gpio.h gpiolib/arches: Centralise bolierplate asm/gpio.h 2012-05-11 18:00:14 -06:00
io.h asm-generic/io.h: remove asm/cacheflush.h include 2012-10-25 16:06:57 +02:00
irq.h openrisc: Get rid of handle_IRQ 2014-09-03 13:11:02 +00:00
irqflags.h OpenRISC: IRQ 2011-07-22 18:46:33 +02:00
Kbuild net, lib: kill arch_fast_hash library bits 2014-12-10 15:17:46 -05:00
linkage.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
mm-arch-hooks.h mm: new mm hook framework 2015-06-24 17:49:41 -07:00
mmu_context.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
mmu.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
mutex.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
page.h OpenRISC: Remove memory_start/end prototypes 2012-03-06 10:37:21 +01:00
pgalloc.h openrisc: add missing pgtable_page_ctor/dtor calls 2013-11-15 09:32:16 +09: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 UAPI: (Scripted) Disintegrate arch/openrisc/include/asm 2012-10-09 09:47:18 +01:00
serial.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
spinlock.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
spr_defs.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
spr.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
syscall.h ARCH: AUDIT: implement syscall_get_arch for all arches 2014-09-23 16:20:10 -04:00
syscalls.h openrisc: switch to use of generic fork and clone 2012-11-28 23:43:40 -05:00
thread_info.h arch: Remove exec_domain from remaining archs 2015-04-12 21:03:30 +02:00
timex.h OpenRISC: Timekeeping 2011-07-22 18:46:32 +02:00
tlb.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
tlbflush.h OpenRISC: Memory management 2011-07-22 18:46:28 +02:00
uaccess.h openrisc/uaccess: fix sparse errors 2015-01-13 15:23:17 +02:00
unaligned.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00