All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] KVM nVHE Hypervisor stack unwinder
@ 2022-06-07 16:50 ` Kalesh Singh
  0 siblings, 0 replies; 42+ messages in thread
From: Kalesh Singh @ 2022-06-07 16:50 UTC (permalink / raw)
  To: mark.rutland, broonie, maz
  Cc: Kefeng Wang, Peter Zijlstra, Catalin Marinas, Alexei Starovoitov,
	will, surenb, kvmarm, Madhavan T. Venkataraman, kernel-team,
	tjmercier, linux-arm-kernel, linux-kernel, Masami Hiramatsu

Hi all,

This v3 of the nVHE hypervisor stack unwinder. The previous versions were
posted at:
v2: https://lore.kernel.org/r/20220502191222.4192768-1-kaleshsingh@google.com/
v1: https://lore.kernel.org/r/20220427184716.1949239-1-kaleshsingh@google.com/

The version is rebased on 5.19-rc1 which resolves the previously unmerged
dependencies, and adds some reviewed tags from Mark Brown.

The cover letter are copied below for convenience.

Thanks,
Kalesh

-------

This new version of the unwinder splits the unwinding and dumping
of the stack between the hypervisor and host:
  - The hypervisor unwinds its stack and dumps the address entries
    into a page shared with the host.
  - The host then symnolizes and prints the hyp stacktrace from
    the shared page.

The new approach doesn't depend on CONFIG_NVHE_EL2_DEBUG,
and allows dumping hyp stacktraces in prodcution environments
(!CONFIG_NVHE_EL2_DEBUG).

arm64/kernel/stacktrace.c is compiled twice: stacktrace.o for the
host kernel and stacktrace.nvhe.o for the hypervisor. This allows
reusing most of the host unwinding logic in the nVHE hypervisor.

Kalesh Singh (5):
  KVM: arm64: Factor out common stack unwinding logic
  KVM: arm64: Compile stacktrace.nvhe.o
  KVM: arm64: Add hypervisor overflow stack
  KVM: arm64: Allocate shared stacktrace pages
  KVM: arm64: Unwind and dump nVHE hypervisor stacktrace

 arch/arm64/include/asm/kvm_asm.h    |   1 +
 arch/arm64/include/asm/stacktrace.h |  58 +++++++++--
 arch/arm64/kernel/stacktrace.c      | 151 +++++++++++++++++++++++-----
 arch/arm64/kvm/arm.c                |  34 +++++++
 arch/arm64/kvm/handle_exit.c        |   4 +
 arch/arm64/kvm/hyp/nvhe/Makefile    |   3 +-
 arch/arm64/kvm/hyp/nvhe/host.S      |   9 +-
 arch/arm64/kvm/hyp/nvhe/setup.c     |  11 ++
 arch/arm64/kvm/hyp/nvhe/switch.c    |   4 +
 9 files changed, 231 insertions(+), 44 deletions(-)


base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56
-- 
2.36.1.255.ge46751e96f-goog

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2022-06-14 20:11 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-07 16:50 [PATCH v3 0/5] KVM nVHE Hypervisor stack unwinder Kalesh Singh
2022-06-07 16:50 ` Kalesh Singh
2022-06-07 16:50 ` Kalesh Singh
2022-06-07 16:50 ` [PATCH v3 1/5] KVM: arm64: Factor out common stack unwinding logic Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-07 16:50 ` [PATCH v3 2/5] KVM: arm64: Compile stacktrace.nvhe.o Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-08  7:33   ` Marc Zyngier
2022-06-08  7:33     ` Marc Zyngier
2022-06-08  7:33     ` Marc Zyngier
2022-06-08 17:22     ` Kalesh Singh
2022-06-08 17:22       ` Kalesh Singh
2022-06-08 17:22       ` Kalesh Singh
2022-06-07 16:50 ` [PATCH v3 3/5] KVM: arm64: Add hypervisor overflow stack Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-08  7:33   ` Marc Zyngier
2022-06-08  7:33     ` Marc Zyngier
2022-06-08  7:33     ` Marc Zyngier
2022-06-08 17:52     ` Kalesh Singh
2022-06-08 17:52       ` Kalesh Singh
2022-06-08 17:52       ` Kalesh Singh
2022-06-07 16:50 ` [PATCH v3 4/5] KVM: arm64: Allocate shared stacktrace pages Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-08  9:01   ` Marc Zyngier
2022-06-08  9:01     ` Marc Zyngier
2022-06-08  9:01     ` Marc Zyngier
2022-06-08 18:17     ` Kalesh Singh
2022-06-08 18:17       ` Kalesh Singh
2022-06-08 18:17       ` Kalesh Singh
2022-06-07 16:50 ` [PATCH v3 5/5] KVM: arm64: Unwind and dump nVHE hypervisor stacktrace Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-07 16:50   ` Kalesh Singh
2022-06-13  6:49   ` kernel test robot
2022-06-13  6:49     ` kernel test robot
2022-06-13  6:49     ` kernel test robot
2022-06-14 20:09   ` kernel test robot
2022-06-14 20:09     ` kernel test robot
2022-06-14 20:09     ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.