diff options
author | 2020-09-15 11:46:34 +0100 | |
---|---|---|
committer | 2020-09-15 18:39:02 +0100 | |
commit | 7db21530479f071ee0e0a4d5fcf5e6bc6c0352ba (patch) | |
tree | b82fcec803426f124714480a6973972293016416 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm64: Update context references from host to hyp (diff) | |
download | wireguard-linux-7db21530479f071ee0e0a4d5fcf5e6bc6c0352ba.tar.xz wireguard-linux-7db21530479f071ee0e0a4d5fcf5e6bc6c0352ba.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions