diff options
author | Julien Thierry <[email protected]> | 2019-01-31 14:58:39 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2019-02-06 10:05:16 +0000 |
commit | 5870970b9a828d8693aa6d15742573289d7dbcd0 (patch) | |
tree | 5690841213b98793f73f6e8472605dd4e51efdb2 /drivers/usb/cdns3/cdns3-debug.h | |
parent | e26a433147065e9b1503df0b3e12296389cdfa94 (diff) |
arm64: Fix HCR.TGE status for NMI contexts
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 <[email protected]>
Suggested-by: Marc Zyngier <[email protected]>
Reviewed-by: Marc Zyngier <[email protected]>
Reviewed-by: James Morse <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: James Morse <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions