Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-02-03 Thread Mark Rutland
On Sat, Jan 30, 2016 at 10:48:02AM +0800, Xishi Qiu wrote: Hi Mark, > > Thanks for your reply. Maybe I didn't express it clearly, sorry for it. > > The abstract process is the following: > 1. do not create a large block, use 4kb for all of the memory(regardless of > performance). > setup_arch->

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-29 Thread Xishi Qiu
On 2016/1/29 19:02, Mark Rutland wrote: > On Fri, Jan 29, 2016 at 09:21:40AM +0800, Xishi Qiu wrote: >> On 2016/1/28 22:27, Mark Rutland wrote: >>> On Thu, Jan 28, 2016 at 07:47:09PM +0800, Xishi Qiu wrote: Hi Mark, Is it safe in the following path? alloc the whole linear

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-29 Thread Mark Rutland
On Fri, Jan 29, 2016 at 09:21:40AM +0800, Xishi Qiu wrote: > On 2016/1/28 22:27, Mark Rutland wrote: > > On Thu, Jan 28, 2016 at 07:47:09PM +0800, Xishi Qiu wrote: > >> Hi Mark, > >> > >> Is it safe in the following path? > >> > >> alloc the whole linear map section > > > > I don't understand what

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-28 Thread Xishi Qiu
On 2016/1/28 22:27, Mark Rutland wrote: > On Thu, Jan 28, 2016 at 07:47:09PM +0800, Xishi Qiu wrote: >> On 2016/1/28 18:51, Mark Rutland wrote: >> >>> On Thu, Jan 28, 2016 at 09:47:20AM +0800, Xishi Qiu wrote: On 2016/1/18 19:56, Mark Rutland wrote: > On Wed, Jan 13, 2016 at 05:10:31PM +0

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-28 Thread Mark Rutland
On Thu, Jan 28, 2016 at 07:47:09PM +0800, Xishi Qiu wrote: > On 2016/1/28 18:51, Mark Rutland wrote: > > > On Thu, Jan 28, 2016 at 09:47:20AM +0800, Xishi Qiu wrote: > >> On 2016/1/18 19:56, Mark Rutland wrote: > >>> On Wed, Jan 13, 2016 at 05:10:31PM +0100, Ard Biesheuvel wrote: > Something

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-28 Thread Xishi Qiu
On 2016/1/28 18:51, Mark Rutland wrote: > On Thu, Jan 28, 2016 at 09:47:20AM +0800, Xishi Qiu wrote: >> On 2016/1/18 19:56, Mark Rutland wrote: >>> On Wed, Jan 13, 2016 at 05:10:31PM +0100, Ard Biesheuvel wrote: Something along these lines, perhaps? diff --git a/arch/arm64/mm/pageat

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-28 Thread Mark Rutland
On Thu, Jan 28, 2016 at 09:47:20AM +0800, Xishi Qiu wrote: > On 2016/1/18 19:56, Mark Rutland wrote: > > On Wed, Jan 13, 2016 at 05:10:31PM +0100, Ard Biesheuvel wrote: > >> Something along these lines, perhaps? > >> > >> diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c > >> index 3

Re: [PATCH] arm64: Allow vmalloc regions to be set with set_memory_*

2016-01-27 Thread Xishi Qiu
On 2016/1/18 19:56, Mark Rutland wrote: > On Wed, Jan 13, 2016 at 05:10:31PM +0100, Ard Biesheuvel wrote: >> On 13 January 2016 at 15:03, Ard Biesheuvel >> wrote: >>> On 12 January 2016 at 22:46, Laura Abbott wrote: The range of set_memory_* is currently restricted to the module addre