[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>
Showing
- arch/i386/kernel/paravirt.c 4 additions, 0 deletionsarch/i386/kernel/paravirt.c
- include/asm-alpha/mmu_context.h 1 addition, 0 deletionsinclude/asm-alpha/mmu_context.h
- include/asm-arm/mmu_context.h 1 addition, 0 deletionsinclude/asm-arm/mmu_context.h
- include/asm-arm26/mmu_context.h 2 additions, 0 deletionsinclude/asm-arm26/mmu_context.h
- include/asm-avr32/mmu_context.h 1 addition, 0 deletionsinclude/asm-avr32/mmu_context.h
- include/asm-cris/mmu_context.h 2 additions, 0 deletionsinclude/asm-cris/mmu_context.h
- include/asm-frv/mmu_context.h 1 addition, 0 deletionsinclude/asm-frv/mmu_context.h
- include/asm-generic/mm_hooks.h 18 additions, 0 deletionsinclude/asm-generic/mm_hooks.h
- include/asm-h8300/mmu_context.h 1 addition, 0 deletionsinclude/asm-h8300/mmu_context.h
- include/asm-i386/mmu_context.h 15 additions, 2 deletionsinclude/asm-i386/mmu_context.h
- include/asm-i386/paravirt.h 23 additions, 0 deletionsinclude/asm-i386/paravirt.h
- include/asm-ia64/mmu_context.h 1 addition, 0 deletionsinclude/asm-ia64/mmu_context.h
- include/asm-m32r/mmu_context.h 1 addition, 0 deletionsinclude/asm-m32r/mmu_context.h
- include/asm-m68k/mmu_context.h 1 addition, 0 deletionsinclude/asm-m68k/mmu_context.h
- include/asm-m68knommu/mmu_context.h 1 addition, 0 deletionsinclude/asm-m68knommu/mmu_context.h
- include/asm-mips/mmu_context.h 1 addition, 0 deletionsinclude/asm-mips/mmu_context.h
- include/asm-parisc/mmu_context.h 1 addition, 0 deletionsinclude/asm-parisc/mmu_context.h
- include/asm-powerpc/mmu_context.h 1 addition, 0 deletionsinclude/asm-powerpc/mmu_context.h
- include/asm-ppc/mmu_context.h 1 addition, 0 deletionsinclude/asm-ppc/mmu_context.h
- include/asm-s390/mmu_context.h 2 additions, 0 deletionsinclude/asm-s390/mmu_context.h
Loading
Please register or sign in to comment