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>
Mon, 14 Nov 2016 06:40:16 +0000 (14:40 +0800)
commita916d13d03d627145048c944130cc595b4642282
tree2f02f1dd93626d54a6375bd561d82ae5be657d1e
parent762f201f0a4445cec9cd8130dde538d946aedee1
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