Thread (8 messages) 8 messages, 3 authors, 2012-07-30

Re: [PATCH 1/2] add mm argument to lazy mmu mode hooks

From: Martin Schwidefsky <hidden>
Date: 2012-07-30 08:15:53
Also in: linux-mm

On Fri, 27 Jul 2012 12:57:50 -0400
Konrad Rzeszutek Wilk [off-list ref] wrote:
On Thu, Jul 26, 2012 at 05:47:13PM +0200, Martin Schwidefsky wrote:
quoted
To enable lazy TLB flush schemes with a scope limited to a single
mm_struct add the mm pointer as argument to the three lazy mmu mode
hooks.
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
index 0b47ddb..b097945 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
@@ -694,17 +694,17 @@ static inline void arch_end_context_switch(struct task_struct *next)
 }
 
 #define  __HAVE_ARCH_ENTER_LAZY_MMU_MODE
-static inline void arch_enter_lazy_mmu_mode(void)
+static inline void arch_enter_lazy_mmu_mode(struct mm_struct *mm)
 {
 	PVOP_VCALL0(pv_mmu_ops.lazy_mode.enter);
If you are doing that, you should probably also update the pvops call to
pass in the 'struct mm_struct'?
Seems reasonable, if we limit the lazy mmu flushing to a single mm then
that fact should be represented on the pvops calls as well.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help