Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-08 Thread Dave Kleikamp
On Tue, 2008-07-08 at 16:18 +1000, Benjamin Herrenschmidt wrote: > Andrew, what tree should this go via ? I have further powerpc patches > depending on this one... so on one hand I'd be happy to take it, but > on the other hand, it's more likely to clash with other things... Andrew has asked that

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-08 Thread Hugh Dickins
On Tue, 8 Jul 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-07-08 at 08:24 +1000, Benjamin Herrenschmidt wrote: > > > There is a little inconsistency, that arch_calc_vm_prot_bits > > > and arch_vm_get_page_prot just handle the exceptional flag (SAO), > > > whereas arch_validate_prot handles al

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-07 Thread Benjamin Herrenschmidt
On Tue, 2008-07-08 at 08:24 +1000, Benjamin Herrenschmidt wrote: > > There is a little inconsistency, that arch_calc_vm_prot_bits > > and arch_vm_get_page_prot just handle the exceptional flag (SAO), > > whereas arch_validate_prot handles all of them; but I don't feel > > so strongly about that to

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-07 Thread Benjamin Herrenschmidt
On Mon, 2008-07-07 at 22:11 +0100, Hugh Dickins wrote: > Sorry, Andrew got the wrong pantomime: I was appearing in Aladdin > a couple of years ago, but this year I'm the Sleeping Beauty. > (Did I hear a grumble of dissent from the back stalls?) No comment :-) > I don't find Dave's patch very hand

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-07 Thread Hugh Dickins
On Mon, 7 Jul 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-07-01 at 13:54 +, Dave Kleikamp wrote: > > On Tue, 2008-07-01 at 01:53 -0700, Andrew Morton wrote: > > > On Wed, 18 Jun 2008 17:32:55 -0500 [EMAIL PROTECTED] wrote: > > > > > > > This patch allows architectures to define function

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-06 Thread Benjamin Herrenschmidt
On Tue, 2008-07-01 at 13:54 +, Dave Kleikamp wrote: > On Tue, 2008-07-01 at 01:53 -0700, Andrew Morton wrote: > > On Wed, 18 Jun 2008 17:32:55 -0500 [EMAIL PROTECTED] wrote: > > > > > This patch allows architectures to define functions to deal with > > > additional protections bits for mmap()

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-01 Thread Dave Kleikamp
On Tue, 2008-07-01 at 01:53 -0700, Andrew Morton wrote: > On Wed, 18 Jun 2008 17:32:55 -0500 [EMAIL PROTECTED] wrote: > > > This patch allows architectures to define functions to deal with > > additional protections bits for mmap() and mprotect(). > > > > arch_calc_vm_prot_bits() maps additonal p

Re: [patch 1/6] mm: Allow architectures to define additional protection bits

2008-07-01 Thread Andrew Morton
On Wed, 18 Jun 2008 17:32:55 -0500 [EMAIL PROTECTED] wrote: > This patch allows architectures to define functions to deal with > additional protections bits for mmap() and mprotect(). > > arch_calc_vm_prot_bits() maps additonal protection bits to vm_flags > arch_vm_get_page_prot() maps additional

[patch 1/6] mm: Allow architectures to define additional protection bits

2008-06-18 Thread shaggy
This patch allows architectures to define functions to deal with additional protections bits for mmap() and mprotect(). arch_calc_vm_prot_bits() maps additonal protection bits to vm_flags arch_vm_get_page_prot() maps additional vm_flags to the vma's vm_page_prot arch_validate_prot() checks for val