arm64: Move VHE-specific SPE setup to mutate_to_vhe()
authorMarc Zyngier <maz@kernel.org>
Mon, 8 Feb 2021 09:57:16 +0000 (09:57 +0000)
committerWill Deacon <will@kernel.org>
Tue, 9 Feb 2021 13:47:11 +0000 (13:47 +0000)
commit19e87e131915a2389a08874092a82fe5aa0f8952
treec46d3b76d2a80e07122ef0340b490a11f9d9bb88
parentc6f8c92f3f368d345c38aea5cc0e60515bcb159e
arm64: Move VHE-specific SPE setup to mutate_to_vhe()

There isn't much that a VHE kernel needs on top of whatever has
been done for nVHE, so let's move the little we need to the
VHE stub (the SPE setup), and drop the init_el2_state macro.

No expected functional change.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: David Brazdil <dbrazdil@google.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210208095732.3267263-8-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hyp-stub.S