arm64: allow vmalloc regions to be set with set_memory_*
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 27 Jan 2016 09:50:19 +0000 (10:50 +0100)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 14:19:17 +0000 (22:19 +0800)
commita0e40450cf255994501d3f84081f95b1fb41623d
tree4f006ac28def5747fa1b46ecb2e68b253bf99d25
parentf00cf2ba83ca2b1ade50b27dd60d6f4294ddeef7
arm64: allow vmalloc regions to be set with set_memory_*

The range of set_memory_* is currently restricted to the module address
range because of difficulties in breaking down larger block sizes.
vmalloc maps PAGE_SIZE pages so it is safe to use as well. Update the
function ranges and add a comment explaining why the range is restricted
the way it is.

Suggested-by: Laura Abbott <labbott@fedoraproject.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 95f5c80050ad723163aa80dc8bffd48ef4afc6d5)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/mm/pageattr.c