X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-x86_64%2Fmmu.h;h=2ac82529546021030476180b0a49c1fd8a135fb3;hb=refs%2Fheads%2Fvserver;hp=5dc6ed79859a5ca8397e9f6130c4f5d2b205eb87;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/asm-x86_64/mmu.h b/include/asm-x86_64/mmu.h index 5dc6ed798..2ac825295 100644 --- a/include/asm-x86_64/mmu.h +++ b/include/asm-x86_64/mmu.h @@ -15,6 +15,24 @@ typedef struct { rwlock_t ldtlock; int size; struct semaphore sem; +#ifdef CONFIG_XEN + unsigned pinned:1; + unsigned has_foreign_mappings:1; + struct list_head unpinned; +#endif } mm_context_t; +#ifdef CONFIG_XEN +extern struct list_head mm_unpinned; +extern spinlock_t mm_unpinned_lock; + +/* 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 + #endif