arm64: trans_pgd: hibernate: Add trans_pgd_copy_el2_vectors
authorPasha Tatashin <pasha.tatashin@soleen.com>
Thu, 30 Sep 2021 14:31:00 +0000 (14:31 +0000)
committerWill Deacon <will@kernel.org>
Fri, 1 Oct 2021 12:30:59 +0000 (13:30 +0100)
commit788bfdd97434982b6d575062581e8e72eea755af
tree16c538a07d47ee67cbc7b4833a521345d7f444cc
parent094a3684b9b67758ccedf0e6068d90f22f2942d9
arm64: trans_pgd: hibernate: Add trans_pgd_copy_el2_vectors

Users of trans_pgd may also need a copy of vector table because it is
also may be overwritten if a linear map can be overwritten.

Move setup of EL2 vectors from hibernate to trans_pgd, so it can be
later shared with kexec as well.

Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210930143113.1502553-3-pasha.tatashin@soleen.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/trans_pgd.h
arch/arm64/include/asm/virt.h
arch/arm64/kernel/hibernate-asm.S
arch/arm64/kernel/hibernate.c
arch/arm64/mm/Makefile
arch/arm64/mm/trans_pgd-asm.S [new file with mode: 0644]
arch/arm64/mm/trans_pgd.c