Re: [PATCH 1/2] export cpu_tlbstate to modules

2009-08-11 Thread Michael S. Tsirkin
Subject: [PATCH] mm: export use_mm/unuse_mm to modules vhost net module wants to do copy to/from user from a kernel thread, which needs use_mm (like what fs/aio has). Move that into mm/ and export to modules. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- On Mon, Aug 10, 2009 at

[PATCH 1/2] export cpu_tlbstate to modules

2009-08-10 Thread Michael S. Tsirkin
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 m...@redhat.com --- arch/x86/mm/tlb.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

Re: [PATCH 1/2] export cpu_tlbstate to modules

2009-08-10 Thread H. Peter Anvin
On 08/10/2009 03:06 PM, Michael S. Tsirkin wrote: Wouldn't it be a *lot* better to move use_mm() from fs/aio.c into common code, and export that instead? That's easy too. What would a good place for it be? Somewhere in mm/, presumably. When in doubt, make it a new file...