All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Bruce Edge <bruce.edge@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Can I use SGI's kdb with a dom0 pv-ops kernel?
Date: Wed, 30 Jun 2010 13:07:39 -0400	[thread overview]
Message-ID: <20100630170739.GB15327@phenom.dumpdata.com> (raw)
In-Reply-To: <AANLkTik6Zx6v5hxXydjNZvIbJHSUVeJxPKX2j2BmrV43@mail.gmail.com>

On Wed, Jun 30, 2010 at 09:44:46AM -0700, Bruce Edge wrote:
> On Wed, Jun 30, 2010 at 9:11 AM, Konrad Rzeszutek Wilk <
> konrad.wilk@oracle.com> wrote:
> 
> > On Tue, Jun 29, 2010 at 03:05:42PM -0700, Bruce Edge wrote:
> > > I asked this a few weeks ago but didn't get a response, so at the risk of
> > > being a nag, I'll abbreviate and restate.
> > >
> > > I know there are other Xen specific debuggers, but I want to know if
> > there's
> > > any reason why SGI's kdb, http://oss.sgi.com/projects/kdb, should not be
> > > included in a dom0 pv-ops kernel?
> >
> > Upstream is integrating one that I think is in 2.6.33
> > or 2.6.34. So when we rev up that we will get it for free.
> >
> 
> Which upstream source is doing this integration? I'm not seeing any
> reference to it on
> 
>  http://kernelnewbies.org/Linux_2_6_33 or
> http://kernelnewbies.org/Linux_2_6_34

I am getting them confused. Here is what I see:

it dc7d552705215ac50a0617fcf51bb9c736255b8e
Author: Jason Wessel <jason.wessel@windriver.com>
Date:   Thu Apr 17 20:05:37 2008 +0200

    kgdb: core
    
    kgdb core code. Handles the protocol and the arch details.


which looks to be in kernel/kgdb.c. You need to have CONFIG_KGDB enabled
for it and some of the Linux command line paramters. That is not the SGI
one but the other one. Is the KGDB not working (or you just are more
comfortable with teh SGI one?)


> > As in, can you use a null modem connection and poke Dom0 via that?
> >
> 
> Yep. The main connection to these boxes is the serial port. The kernel
> cmdline has "console=hvc0,115200n8" so I get boot output on it, I'm using
>  "exec /sbin/getty -8 38400 hvc0" to get a login on the serial console,
> which works fine. The 3xCtrl-A also works.

I wonder if the problem you are hitting is that you are using the hvc0
driver. Not the real serial driver. Which means that the hvc0 driver
isn't picking up any of your input b/c its workqueue has been effectivly
terminated.

One way to go around this is to not use the serial console for Xen and
have the Dom0 use it exclusivly. Which means you would be doing
'console=ttyS0,38400'. At least that is the theory -  I am not sure
if Xen will allow you to do that.

  reply	other threads:[~2010-06-30 17:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29 22:05 Can I use SGI's kdb with a dom0 pv-ops kernel? Bruce Edge
2010-06-30 16:11 ` Konrad Rzeszutek Wilk
2010-06-30 16:44   ` Bruce Edge
2010-06-30 17:07     ` Konrad Rzeszutek Wilk [this message]
2010-07-01  9:35     ` Jan Beulich

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=20100630170739.GB15327@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=bruce.edge@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 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.