[PATCH 30/31] x86, pkeys: create an x86 arch_calc_vm_prot_bits() for VMA flags

2016-01-29 Thread Dave Hansen
From: Dave Hansen calc_vm_prot_bits() takes PROT_{READ,WRITE,EXECUTE} bits and turns them in to the vma->vm_flags/VM_* bits. We need to do a similar thing for protection keys. We take a protection key (4 bits) and encode it in to the 4 VM_PKEY_* bits. Note: this code is not new. It was

[PATCH 30/31] x86, pkeys: create an x86 arch_calc_vm_prot_bits() for VMA flags

2016-01-29 Thread Dave Hansen
From: Dave Hansen calc_vm_prot_bits() takes PROT_{READ,WRITE,EXECUTE} bits and turns them in to the vma->vm_flags/VM_* bits. We need to do a similar thing for protection keys. We take a protection key (4 bits) and encode it in to the 4 VM_PKEY_* bits. Note: this

[PATCH 30/31] x86, pkeys: create an x86 arch_calc_vm_prot_bits() for VMA flags

2016-01-06 Thread Dave Hansen
From: Dave Hansen calc_vm_prot_bits() takes PROT_{READ,WRITE,EXECUTE} bits and turns them in to the vma->vm_flags/VM_* bits. We need to do a similar thing for protection keys. We take a protection key (4 bits) and encode it in to the 4 VM_PKEY_* bits. Note: this code is not new. It was

[PATCH 30/31] x86, pkeys: create an x86 arch_calc_vm_prot_bits() for VMA flags

2016-01-06 Thread Dave Hansen
From: Dave Hansen calc_vm_prot_bits() takes PROT_{READ,WRITE,EXECUTE} bits and turns them in to the vma->vm_flags/VM_* bits. We need to do a similar thing for protection keys. We take a protection key (4 bits) and encode it in to the 4 VM_PKEY_* bits. Note: this