[PATCH v6 0/3] xen: add support for automatic debug key actions in case of crash

Juergen Gross posted 3 patches 3 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20210116103339.21708-1-jgross@suse.com
Test gitlab-ci failed
docs/misc/xen-command-line.pandoc | 41 ++++++++++++++++++
xen/arch/arm/traps.c              |  8 ++++
xen/arch/arm/xen.lds.S            |  2 +
xen/common/kexec.c                |  8 ++--
xen/common/keyhandler.c           | 72 +++++++++++++++++++++++++++++--
xen/common/shutdown.c             |  4 +-
xen/common/virtual_region.c       |  2 -
xen/drivers/char/console.c        |  2 +-
xen/include/asm-arm/arm32/bug.h   |  2 +
xen/include/asm-arm/arm64/bug.h   |  2 +
xen/include/asm-arm/bug.h         | 31 ++++++++++---
xen/include/xen/kexec.h           | 10 ++++-
xen/include/xen/keyhandler.h      | 10 +++++
13 files changed, 175 insertions(+), 19 deletions(-)
[PATCH v6 0/3] xen: add support for automatic debug key actions in case of crash
Posted by Juergen Gross 3 years, 2 months ago
When the host crashes it would sometimes be nice to have additional
debug data available which could be produced via debug keys, but
halting the server for manual intervention might be impossible due to
the need to reboot/kexec rather sooner than later.

Add support for automatic debug key actions in case of crashes which
can be activated via boot- or runtime-parameter.

Changes in V4:
- addressed comments (now patch 3)
- added patches 1 and 2

Changes in V5:
- better bug frame construction on Arm (patch 1)
- addressed comments

Changes in V6:
- rework of patch 1 due to Arm 32-bit problems

Juergen Gross (3):
  xen/arm: add support for run_in_exception_handler()
  xen: enable keyhandlers to work without register set specified
  xen: add support for automatic debug key actions in case of crash

 docs/misc/xen-command-line.pandoc | 41 ++++++++++++++++++
 xen/arch/arm/traps.c              |  8 ++++
 xen/arch/arm/xen.lds.S            |  2 +
 xen/common/kexec.c                |  8 ++--
 xen/common/keyhandler.c           | 72 +++++++++++++++++++++++++++++--
 xen/common/shutdown.c             |  4 +-
 xen/common/virtual_region.c       |  2 -
 xen/drivers/char/console.c        |  2 +-
 xen/include/asm-arm/arm32/bug.h   |  2 +
 xen/include/asm-arm/arm64/bug.h   |  2 +
 xen/include/asm-arm/bug.h         | 31 ++++++++++---
 xen/include/xen/kexec.h           | 10 ++++-
 xen/include/xen/keyhandler.h      | 10 +++++
 13 files changed, 175 insertions(+), 19 deletions(-)

-- 
2.26.2