[PATCH 1/2] export cpu_tlbstate to modules

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael S. Tsirkin
Date: Monday, August 10, 2009 - 11:53 am

vhost net module wants to do copy to/from user from a kernel thread,
which needs switch_mm (like what fs/aio has).
export cpu_tlbstate to make this possible

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 arch/x86/mm/tlb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
index 821e970..e33a5f0 100644
--- a/arch/x86/mm/tlb.c
+++ b/arch/x86/mm/tlb.c
@@ -13,6 +13,7 @@
 
 DEFINE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate)
 			= { &init_mm, 0, };
+EXPORT_PER_CPU_SYMBOL_GPL(cpu_tlbstate);
 
 /*
  *	Smarter SMP flushing macros.
-- 
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] export cpu_tlbstate to modules, Michael S. Tsirkin, (Mon Aug 10, 11:53 am)
Re: [PATCH 1/2] export cpu_tlbstate to modules, H. Peter Anvin, (Mon Aug 10, 2:56 pm)
Re: [PATCH 1/2] export cpu_tlbstate to modules, Michael S. Tsirkin, (Mon Aug 10, 3:06 pm)
Re: [PATCH 1/2] export cpu_tlbstate to modules, H. Peter Anvin, (Mon Aug 10, 3:24 pm)
Re: [PATCH 1/2] export cpu_tlbstate to modules, Michael S. Tsirkin, (Tue Aug 11, 4:19 am)