Skip to content

Remove unconditional arch dependency on asm/debugger.h

Bobby Eshleman xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 7 repliesIn review
  2. v36 patches 13 repliesSuperseded
  3. v24 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v10 of 4 patches0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm/traps: remove debugger_trap_fatal() callsxen/arch/arm/traps.c+0 -71 reply
2/6x86/debugger: separate Xen and guest debugging debugger_trap_* functionsxen/arch/x86/domain.c xen/arch/x86/traps.c xen/include/asm-x86/debugger.h+33 -611 reply
3/6arch/x86: rename debug.c to gdbsx.cxen/arch/x86/Makefile xen/arch/x86/domctl.c xen/arch/x86/gdbsx.c +2 more+31 -202 replies
4/6x86/gdbsx: expand dbg_rw_mem() inlinexen/arch/x86/gdbsx.c+9 -211 reply
5/6arch/x86: move domain_pause_for_debugger() to domain.hxen/arch/x86/nmi.c xen/arch/x86/traps.c xen/include/asm-x86/debugger.h +1 more+2 -41 reply
6/6x86: change asm/debugger.h to xen/debugger.hxen/arch/x86/traps.c xen/common/domain.c xen/common/gdbstub.c +6 more+57 -351 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchJulien GrallAndrew Cooper
1/6A-b
2/6
3/6
4/6A-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/6] Remove unconditional arch dependency on asm/debugger.h

This series removes the unconditional requirement that all architectures implement asm/debugger.h. It additionally removes arm's debugger.h and disentangles some of the x86 gdbsx/gdbstub/generic debugger code.

Additionally, this series does the following:
- Provides generic stubs when !CONFIG_CRASH_DEBUG
- Adds stronger separation between gdbstub, gdbsx, and generic debugger code.

v4 simply includes the review feedback from v3 with no other big changes (as was the case for v3 in comparison to v2).

Bobby Eshleman (6):
arm/traps: remove debugger_trap_fatal() calls x86/debugger: separate Xen and guest debugging debugger_trap_*
functions
arch/x86: rename debug.c to gdbsx.c
x86/gdbsx: expand dbg_rw_mem() inline
arch/x86: move domain_pause_for_debugger() to domain.h
x86: change asm/debugger.h to xen/debugger.h

 xen/arch/arm/traps.c              |  7 ----
 xen/arch/x86/Makefile             |  2 +-
 xen/arch/x86/domain.c             |  2 +-
 xen/arch/x86/domctl.c             | 12 +-----
 xen/arch/x86/{debug.c => gdbsx.c} | 28 ++++++-------
 xen/arch/x86/nmi.c                |  1 -
 xen/arch/x86/traps.c              | 52 +++++++++++++++----------
 xen/common/domain.c               |  2 +-
 xen/common/gdbstub.c              |  2 +-
 xen/common/keyhandler.c           |  2 +-
 xen/common/shutdown.c             |  2 +-
 xen/drivers/char/console.c        |  2 +-
 xen/include/asm-arm/debugger.h    | 15 -------
 xen/include/asm-x86/debugger.h    | 65 +------------------------------
 xen/include/asm-x86/domain.h      |  2 +
 xen/include/asm-x86/gdbsx.h       | 19 +++++++++
 xen/include/xen/debugger.h        | 51 ++++++++++++++++++++++++
 17 files changed, 125 insertions(+), 141 deletions(-)
 rename xen/arch/x86/{debug.c => gdbsx.c} (89%)
 delete mode 100644 xen/include/asm-arm/debugger.h
 create mode 100644 xen/include/asm-x86/gdbsx.h
 create mode 100644 xen/include/xen/debugger.h
Signature · 1 line
2.32.0