[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20070426195624.GA9578@c2.user-mode-linux.org>
Date: Thu, 26 Apr 2007 15:56:24 -0400
From: Jeff Dike <jdike@...toit.com>
To: Andrew Morton <akpm@...l.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
uml-devel <user-mode-linux-devel@...ts.sourceforge.net>
Subject: [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 <jdike@...ux.intel.com>
--
arch/um/kernel/skas/tlb.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Index: linux-2.6.21-mm/arch/um/kernel/skas/tlb.c
===================================================================
--- linux-2.6.21-mm.orig/arch/um/kernel/skas/tlb.c 2007-04-17 12:20:05.000000000 -0400
+++ linux-2.6.21-mm/arch/um/kernel/skas/tlb.c 2007-04-17 12:55:38.000000000 -0400
@@ -89,8 +89,13 @@ void flush_tlb_mm_skas(struct mm_struct
void 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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists