]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:14 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:14 +0000 (19:27 +0200)
commitd6dd61c831226f9cd7750885da04d360d6455101
tree30f84a429821d207f7de5dd6225d3d9515042c0a
parent5311ab62cdc7788784971ed816ce85e926f3e994
[PATCH] x86: PARAVIRT: add hooks to intercept mm creation and destruction

Add hooks to allow a paravirt implementation to track the lifetime of
an mm.  Paravirtualization requires three hooks, but only two are
needed in common code.  They are:

arch_dup_mmap, which is called when a new mmap is created at fork

arch_exit_mmap, which is called when the last process reference to an
  mm is dropped, which typically happens on exit and exec.

The third hook is activate_mm, which is called from the arch-specific
activate_mm() macro/function, and so doesn't need stub versions for
other architectures.  It's called when an mm is first used.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: linux-arch@vger.kernel.org
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
30 files changed:
arch/i386/kernel/paravirt.c
include/asm-alpha/mmu_context.h
include/asm-arm/mmu_context.h
include/asm-arm26/mmu_context.h
include/asm-avr32/mmu_context.h
include/asm-cris/mmu_context.h
include/asm-frv/mmu_context.h
include/asm-generic/mm_hooks.h [new file with mode: 0644]
include/asm-h8300/mmu_context.h
include/asm-i386/mmu_context.h
include/asm-i386/paravirt.h
include/asm-ia64/mmu_context.h
include/asm-m32r/mmu_context.h
include/asm-m68k/mmu_context.h
include/asm-m68knommu/mmu_context.h
include/asm-mips/mmu_context.h
include/asm-parisc/mmu_context.h
include/asm-powerpc/mmu_context.h
include/asm-ppc/mmu_context.h
include/asm-s390/mmu_context.h
include/asm-sh/mmu_context.h
include/asm-sh64/mmu_context.h
include/asm-sparc/mmu_context.h
include/asm-sparc64/mmu_context.h
include/asm-um/mmu_context.h
include/asm-v850/mmu_context.h
include/asm-x86_64/mmu_context.h
include/asm-xtensa/mmu_context.h
kernel/fork.c
mm/mmap.c