Files
linux/arch/arm64/include/asm
Julien Thierry 85c8ea220f arm64: Fix HCR.TGE status for NMI contexts
commit 5870970b9a upstream.

When using VHE, the host needs to clear HCR_EL2.TGE bit in order
to interact 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 <julien.thierry@arm.com>
Suggested-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: James Morse <james.morse@arm.com>
Cc: linux-arch@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 20:10:08 +01:00
..
2017-08-08 16:28:13 +01:00
2012-09-17 13:42:21 +01:00
2016-09-09 11:41:13 +01:00
2016-11-07 18:15:21 +00:00
2014-11-05 09:03:25 +01:00
2018-07-22 14:13:43 +02:00
2012-09-17 13:42:04 +01:00
2012-09-17 13:41:56 +01:00
2018-05-07 07:15:41 +02:00
2014-11-28 10:24:59 +00:00
2018-07-12 14:49:48 +01:00
2018-07-12 14:49:48 +01:00
2016-11-07 18:15:21 +00:00
2012-09-17 13:42:09 +01:00
2018-01-13 10:45:03 +00:00