UML - Only flush areas covered by VMA
PATCH 3/5 UML - Only flush areas covered by VMA
When doing a full address space flush, only look at areas covered by a VMA.
Signed-off-by Jeff Dike <[email protected]>
--
arch/um/kernel/skas/tlb.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
arch/um/kernel/skas/tlb.c +7 -2
@@ -89,8 +89,13 @@ void flush_tlb_mm_skas(struct mm_structvoid force_flush_all_skas (void ) { -unsigned long end = proc_mm ? task_size :CONFIG_STUB_START ; -fix_range (current->mm,0 , end,1 ); +struct mm_struct *mm = current->mm; +struct vm_area_struct *vma = mm->mmap; + +while (vma !=NULL ) { +fix_range (mm, vma->vm_start, vma->vm_end,1 ); + vma = vma->vm_next; + } }void flush_tlb_page_skas (struct vm_area_struct *vma,unsigned long address)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel