Skip to content

Commit d182f9f

Browse files
committed
x86: Remove gdbstub
In 13y of working on Xen, I've never seen seen it used. The implementation was introduced (commit b69f92f, Jul 28 2004) with known issues such as: /* Resuming after we've stopped used to work, but more through luck than any actual intention. It doesn't at the moment. */ which appear to have gone unfixed for the 20 years since. Nowadays there are more robust ways of inspecting crashed state, such as a kexec crash kernel, or running Xen in a VM. This will allow us to clean up some hooks around the codebase which are proving awkward for other tasks. Signed-off-by: Andrew Cooper <[email protected]> Acked-by: Jan Beulich <[email protected]>
1 parent 583f1d0 commit d182f9f

File tree

10 files changed

+1
-1110
lines changed

10 files changed

+1
-1110
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
2525
- /usr/bin/pygrub symlink. This was deprecated in Xen 4.2 (2012) but left for
2626
compatibility reasons. VMs configured with bootloader="/usr/bin/pygrub"
2727
should be updated to just bootloader="pygrub".
28+
- The Xen gdbstub on x86.
2829

2930
## [4.18.0](https://xenbits.xenproject.org/gitweb/?p=xen.git;a=shortlog;h=RELEASE-4.18.0) - 2023-11-16
3031

docs/misc/xen-command-line.pandoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,13 +1242,6 @@ requirement can be relaxed. This option is particularly useful for nested
12421242
virtualization, to allow the L1 hypervisor to use EPT even if the L0 hypervisor
12431243
does not provide `VM_ENTRY_LOAD_GUEST_PAT`.
12441244

1245-
### gdb
1246-
> `= com1[H,L] | com2[H,L] | dbgp`
1247-
1248-
> Default: ``
1249-
1250-
Specify which console gdbstub should use. See **console**.
1251-
12521245
### gnttab
12531246
> `= List of [ max-ver:<integer>, transitive=<bool>, transfer=<bool> ]`
12541247

xen/Kconfig.debug

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ config DEBUG
1313

1414
if DEBUG || EXPERT
1515

16-
config CRASH_DEBUG
17-
bool "Crash Debugging Support"
18-
depends on X86
19-
---help---
20-
If you want to attach gdb to Xen to debug Xen if it crashes
21-
then say Y.
22-
2316
config GDBSX
2417
bool "Guest debugging with gdbsx"
2518
depends on X86

xen/arch/x86/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ obj-y += e820.o
3535
obj-y += emul-i8254.o
3636
obj-y += extable.o
3737
obj-y += flushtlb.o
38-
obj-$(CONFIG_CRASH_DEBUG) += gdbstub.o
3938
obj-$(CONFIG_GDBSX) += gdbsx.o
4039
obj-y += hypercall.o
4140
obj-y += i387.o

xen/arch/x86/gdbstub.c

Lines changed: 0 additions & 91 deletions
This file was deleted.

xen/arch/x86/x86_64/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@ obj-$(CONFIG_COMPAT) += domain.o
1212
obj-$(CONFIG_COMPAT) += cpu_idle.o
1313
obj-$(CONFIG_COMPAT) += cpufreq.o
1414
obj-bin-$(CONFIG_KEXEC) += kexec_reloc.o
15-
16-
obj-$(CONFIG_CRASH_DEBUG) += gdbstub.o

xen/arch/x86/x86_64/gdbstub.c

Lines changed: 0 additions & 150 deletions
This file was deleted.

xen/common/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ obj-$(CONFIG_OVERLAY_DTB) += dt-overlay.o
1212
obj-y += event_2l.o
1313
obj-y += event_channel.o
1414
obj-y += event_fifo.o
15-
obj-$(CONFIG_CRASH_DEBUG) += gdbstub.o
1615
obj-$(CONFIG_GRANT_TABLE) += grant_table.o
1716
obj-y += guestcopy.o
1817
obj-bin-y += gunzip.init.o

0 commit comments

Comments
 (0)