Re: [PATCH 20/27] Split init_new_context and destroy_context

2009-10-31 Thread Benjamin Herrenschmidt
On Sat, 2009-10-31 at 22:20 +0100, Alexander Graf wrote: Stephen Rothwell wrote: Hi Alexander, On Fri, 30 Oct 2009 16:47:20 +0100 Alexander Graf ag...@suse.de wrote: --- a/arch/powerpc/include/asm/mmu_context.h +++ b/arch/powerpc/include/asm/mmu_context.h @@ -23,6 +23,11 @@

[PATCH 20/27] Split init_new_context and destroy_context

2009-10-30 Thread Alexander Graf
For KVM we need to allocate a new context id, but don't really care about all the mm context around it. So let's split the alloc and destroy functions for the context id, so we can grab one without allocating an mm context. Signed-off-by: Alexander Graf ag...@suse.de ---

Re: [PATCH 20/27] Split init_new_context and destroy_context

2009-10-30 Thread Stephen Rothwell
Hi Alexander, On Fri, 30 Oct 2009 16:47:20 +0100 Alexander Graf ag...@suse.de wrote: --- a/arch/powerpc/include/asm/mmu_context.h +++ b/arch/powerpc/include/asm/mmu_context.h @@ -23,6 +23,11 @@ extern void switch_slb(struct task_struct *tsk, struct mm_struct *mm); extern void

Re: [PATCH 20/27] Split init_new_context and destroy_context

2009-10-28 Thread Benjamin Herrenschmidt
On Wed, 2009-10-21 at 17:03 +0200, Alexander Graf wrote: For KVM we need to allocate a new context id, but don't really care about all the mm context around it. So let's split the alloc and destroy functions for the context id, so we can grab one without allocating an mm context. No

[PATCH 20/27] Split init_new_context and destroy_context

2009-10-21 Thread Alexander Graf
For KVM we need to allocate a new context id, but don't really care about all the mm context around it. So let's split the alloc and destroy functions for the context id, so we can grab one without allocating an mm context. Signed-off-by: Alexander Graf ag...@suse.de ---

[PATCH 20/27] Split init_new_context and destroy_context

2009-09-29 Thread Alexander Graf
For KVM we need to allocate a new context id, but don't really care about all the mm context around it. So let's split the alloc and destroy functions for the context id, so we can grab one without allocating an mm context. Signed-off-by: Alexander Graf ag...@suse.de ---