diff options
author | Andrew Scull <ascull@google.com> | 2020-09-15 11:46:34 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-09-15 18:39:02 +0100 |
commit | 7db21530479f071ee0e0a4d5fcf5e6bc6c0352ba (patch) | |
tree | b82fcec803426f124714480a6973972293016416 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7c2e76d87f9ce7af47a07ca803343fd5f4aa4ab5 (diff) |
KVM: arm64: Restore hyp when panicking in guest context
If the guest context is loaded when a panic is triggered, restore the
hyp context so e.g. the shadow call stack works when hyp_panic() is
called and SP_EL0 is valid when the host's panic() is called.
Use the hyp context's __hyp_running_vcpu field to track when hyp
transitions to and from the guest vcpu so the exception handlers know
whether the context needs to be restored.
Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200915104643.2543892-11-ascull@google.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions