Re: [PATCH v8 01/26] arm64: Fix HCR.TGE status for NMI contexts
From: Marc Zyngier <hidden>
Date: 2019-01-28 09:16:29
Also in:
linux-arch, lkml, stable
From: Marc Zyngier <hidden>
Date: 2019-01-28 09:16:29
Also in:
linux-arch, lkml, stable
On Tue, 08 Jan 2019 14:07:19 +0000, Julien Thierry [off-list ref] wrote:
When using VHE, the host needs to clear HCR_EL2.TGE bit in order to interract with guest TLBs, switching from EL2&0 translation regime to EL1&0. However, some non-maskable asynchronous event could happen while TGE is cleared like SDEI. Because of this address translation operations relying on EL2&0 translation regime could fail (tlb invalidation, userspace access, ...). Fix this by properly setting HCR_EL2.TGE when entering NMI context and clear it if necessary when returning to the interrupted context. Signed-off-by: Julien Thierry <redacted> Suggested-by: Marc Zyngier <redacted> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <redacted> Cc: Marc Zyngier <redacted> Cc: James Morse <james.morse@arm.com> Cc: linux-arch@vger.kernel.org Cc: stable@vger.kernel.org
Reviewed-by: Marc Zyngier <redacted> Thanks, M. -- Jazz is not dead, it just smell funny. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel