diff options
author | Frederic Weisbecker <[email protected]> | 2020-02-27 09:51:40 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-05-19 15:51:17 +0200 |
commit | 28f6bf9e247fe23d177cfdbf7e709270e8cc7fa6 (patch) | |
tree | 98779ac32476edcab0027f77161f7983674a7d5f /scripts/gdb | |
parent | b0f51883f551b900a04a80f49fb0886caf7e9a12 (diff) |
arm64: Prepare arch_nmi_enter() for recursion
When using nmi_enter() recursively, arch_nmi_enter() must also be recursion
safe. In particular, it must be ensured that HCR_TGE is always set while in
NMI context when in HYP mode, and be restored to it's former state when
done.
The current code fails this when interleaved wrong. Notably it overwrites
the original hcr state on nesting.
Introduce a nesting counter to make sure to store the original value.
Signed-off-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Catalin Marinas <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions