arm64: mm: add set_memory_valid()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 3 Apr 2017 02:24:33 +0000 (11:24 +0900)
committerAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 19 Jun 2017 06:09:03 +0000 (15:09 +0900)
commit8d8d32ab8f8bc41cdf00c2c44c50041cb93a3dc4
treed16e1b6060b89b3efbe338442d27fd6336aa91c3
parent0d3db547e8c547d38dc0035d0cf1c49dc7cbf735
arm64: mm: add set_memory_valid()

This function validates and invalidates PTE entries, and will be utilized
in kdump to protect loaded crash dump kernel image.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Conflicts:
arch/arm64/mm/pageattr.c
due to missing commit 83863f25e4b8 ("arm64: Add support for
ARCH_SUPPORTS_DEBUG_PAGEALLOC")
arch/arm64/include/asm/cacheflush.h
arch/arm64/mm/pageattr.c