From: Peter Zijlstra <peterz@infradead.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org, tglx@kernel.org, mingo@redhat.com, bp@alien8.de,
dave.hansen@linux.intel.com, steve.wahl@hpe.com,
justin.ernst@hpe.com, kyle.meyer@hpe.com,
dimitri.sivanich@hpe.com, russ.anderson@hpe.com,
linux-kernel@vger.kernel.org, mhiramat@kernel.org
Subject: Re: [PATCH] x86: Drop KGDB support
Date: Wed, 28 Oct 2026 15:26:25 +0100 [thread overview]
Message-ID: <20261028142625.GU2668564@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <28F95BAB-6D5B-4C70-A9F2-14B752EBF022@zytor.com>
On Wed, Oct 28, 2026 at 07:15:46AM -0700, H. Peter Anvin wrote:
> On October 28, 2026 5:21:24 AM PDT, Peter Zijlstra <peterz@infradead.org> wrote:
> >
> >KGDB does some horrible things, and with everybody having access to
> >virtualization these days, there is really no reason to use it over
> >Qemu's gdb-server.
> >
> >Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
<snips a gazillion lines>
> Is that really true? What if the debugging depends on specific hardware?
Use device pass-through, emulate it, or printk() debug it.
Using KGDB can cause a ton of problems, it more or less stays stuck in
NMI context, which can terminally screw up the timekeeping code, it can
also cause the watchdogs to fire and there's endless annoyance with code
patching and breakpoints.
People have been trying to 'fix' the breakpoint code to be less broken
in the face of KGBD, but its all terrible and really not worth it. By
fat the sanest option is to just delete KGDB as proposed here.
Also, when was the last time you used KGDB? I think I've tried it once,
some 20 years ago, and haven't bothered since -- it was *that* good :-)
next prev parent reply other threads:[~2026-10-28 14:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 12:21 Peter Zijlstra
2026-10-28 14:15 ` H. Peter Anvin
2026-10-28 14:26 ` Peter Zijlstra [this message]
2026-10-28 15:10 ` Dave Hansen
2026-10-28 19:58 ` Steve Wahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261028142625.GU2668564@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=dimitri.sivanich@hpe.com \
--cc=hpa@zytor.com \
--cc=justin.ernst@hpe.com \
--cc=kyle.meyer@hpe.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@redhat.com \
--cc=russ.anderson@hpe.com \
--cc=steve.wahl@hpe.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®