X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fmmu.h;h=bbb4ff3d25f22dd9ef25cdc7fd5c77e518b5601a;hb=refs%2Fremotes%2Fvserver;hp=049f32e681289e046dd250c2dfed2d2e095396fa;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git diff --git a/include/asm-i386/mmu.h b/include/asm-i386/mmu.h index 049f32e68..bbb4ff3d2 100644 --- a/include/asm-i386/mmu.h +++ b/include/asm-i386/mmu.h @@ -17,6 +17,19 @@ typedef struct { struct desc_struct user_cs; unsigned long exec_limit; void *vdso; +#ifdef CONFIG_XEN + int has_foreign_mappings; +#endif } mm_context_t; +#ifdef CONFIG_XEN +/* mm/memory.c:exit_mmap hook */ +extern void _arch_exit_mmap(struct mm_struct *mm); +#define arch_exit_mmap(_mm) _arch_exit_mmap(_mm) + +/* kernel/fork.c:dup_mmap hook */ +extern void _arch_dup_mmap(struct mm_struct *mm); +#define arch_dup_mmap(mm, oldmm) ((void)(oldmm), _arch_dup_mmap(mm)) +#endif /* CONFIG_XEN */ + #endif