KVM: arm64: Use INIT_SCTLR_EL2_MMU_OFF to disable the MMU on KVM teardown
authorMarc Zyngier <maz@kernel.org>
Wed, 10 Mar 2021 13:32:53 +0000 (13:32 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 18 Mar 2021 15:51:56 +0000 (15:51 +0000)
commitbc6ddaa67abc9345370b219d07b079d25665f868
tree95f256144cf422eb7b067351f61ee9d556206b6a
parent45879a57751d272ced9ed5ccfd28c58e2095ceb7
KVM: arm64: Use INIT_SCTLR_EL2_MMU_OFF to disable the MMU on KVM teardown

Instead of doing a RMW on SCTLR_EL2 to disable the MMU, use the
existing define that loads the right set of bits.

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/kvm/hyp/nvhe/hyp-init.S