Displaying 2 results from an estimated 2 matches for "add_lazy_mm".
2007 Apr 18
0
[PATCH 14/14] i386 / Introduce hypervisor lazy pinning hooks
...;mm->context, 0, sizeof(mm->context));
init_MUTEX(&mm->context.sem);
- mm->context.size = 0;
old_mm = current->mm;
if (old_mm && unlikely(old_mm->context.size > 0)) {
retval = copy_ldt(&mm->context, &old_mm->context);
}
+ if (retval == 0)
+ add_lazy_mm(mm);
return retval;
}
@@ -31,6 +34,7 @@
{
if (unlikely(mm->context.size))
destroy_ldt(mm);
+ del_lazy_mm(mm);
}
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
Index: linux-2.6.13/include/asm-i386/mach-default/mach_mmu.h
===========================...
2007 Apr 18
0
[PATCH 14/14] i386 / Introduce hypervisor lazy pinning hooks
...;mm->context, 0, sizeof(mm->context));
init_MUTEX(&mm->context.sem);
- mm->context.size = 0;
old_mm = current->mm;
if (old_mm && unlikely(old_mm->context.size > 0)) {
retval = copy_ldt(&mm->context, &old_mm->context);
}
+ if (retval == 0)
+ add_lazy_mm(mm);
return retval;
}
@@ -31,6 +34,7 @@
{
if (unlikely(mm->context.size))
destroy_ldt(mm);
+ del_lazy_mm(mm);
}
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
Index: linux-2.6.13/include/asm-i386/mach-default/mach_mmu.h
===========================...