Re: Which architectures need to sync vmalloc mappings between processes?

2007-02-18 Thread Andi Kleen
> On i386 with PAE, this is not necessary because the kernel's mappings > are shared between all processes anyway, so it would be a no-op. > However, non-PAE i386 has a separate kernel mapping for each process, > and so needs to sync them - typically lazily on faults, but > vmalloc_sync_all

Re: Which architectures need to sync vmalloc mappings between processes?

2007-02-18 Thread James Bottomley
On Sat, 2007-02-17 at 21:29 -0800, Jeremy Fitzhardinge wrote: > I'm looking at making all architectures export a vmalloc_sync_all() > function, so that generic code can be sure that a particular vmalloc > mapping is present in all address spaces. I need this to implement a > function to reserve

Re: Which architectures need to sync vmalloc mappings between processes?

2007-02-18 Thread James Bottomley
On Sat, 2007-02-17 at 21:29 -0800, Jeremy Fitzhardinge wrote: I'm looking at making all architectures export a vmalloc_sync_all() function, so that generic code can be sure that a particular vmalloc mapping is present in all address spaces. I need this to implement a function to reserve a

Re: Which architectures need to sync vmalloc mappings between processes?

2007-02-18 Thread Andi Kleen
On i386 with PAE, this is not necessary because the kernel's mappings are shared between all processes anyway, so it would be a no-op. However, non-PAE i386 has a separate kernel mapping for each process, and so needs to sync them - typically lazily on faults, but vmalloc_sync_all exists

Which architectures need to sync vmalloc mappings between processes?

2007-02-17 Thread Jeremy Fitzhardinge
Hi, I'm looking at making all architectures export a vmalloc_sync_all() function, so that generic code can be sure that a particular vmalloc mapping is present in all address spaces. I need this to implement a function to reserve a chunk of vmalloc address space complete with constructed

Which architectures need to sync vmalloc mappings between processes?

2007-02-17 Thread Jeremy Fitzhardinge
Hi, I'm looking at making all architectures export a vmalloc_sync_all() function, so that generic code can be sure that a particular vmalloc mapping is present in all address spaces. I need this to implement a function to reserve a chunk of vmalloc address space complete with constructed