KVM: arm64: Turn SCTLR_ELx_FLAGS into INIT_SCTLR_EL2_MMU_ON
authorMarc Zyngier <maz@kernel.org>
Wed, 10 Mar 2021 13:33:20 +0000 (13:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 18 Mar 2021 15:52:02 +0000 (15:52 +0000)
commitfe2c8d19189e23a951e45fdb73aade25b1665bce
treec5b5feb3a4ccdaa0ceccc14b8ca6836178c0090d
parentbc6ddaa67abc9345370b219d07b079d25665f868
KVM: arm64: Turn SCTLR_ELx_FLAGS into INIT_SCTLR_EL2_MMU_ON

Only the nVHE EL2 code is using this define, so let's make it
plain that it is EL2 only, and refactor it to contain all the
bits we need when configuring the EL2 MMU, and only those.

Acked-by: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/sysreg.h
arch/arm64/kvm/hyp/nvhe/hyp-init.S