[PATCH 0/3] arm64: Assorted MMU-on fixes
flat view
STALE2053d
From: Marc Zyngier <maz@kernel.org>
Date: 2021-02-24 09:39:42
Guillaume (and his mate the KernelCI bot) recently reported that the new VHE enablement code lamentably fails when 64k pages are enabled. And fair enough, the code was broken to the point that it really should have never booted the first place... The first patch fixes what amounts to a total brain fart. The next two patches address a potential issue noted by Will, where we may be missing some ISBs when invalidating TLBs, right before enabling the MMU (I've decided the have separate patches for the two instances so that the first one can be easily backported if required). I've tested this on my local VHE-capable machine as well as on the FVP model (with both 4k and 64k pages). Marc Zyngier (3): arm64: VHE: Enable EL2 MMU from the idmap arm64: Add missing ISB after invalidating TLB in __primary_switch arm64: Add missing ISB after invalidating TLB in enter_vhe arch/arm64/kernel/head.S | 1 + arch/arm64/kernel/hyp-stub.S | 40 ++++++++++++++++++++++++------------ 2 files changed, 28 insertions(+), 13 deletions(-) -- 2.29.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel