From: Anders Kaseorg <andersk@MIT.EDU>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Serial console hangs with Linux 2.6.20 HVM guest
Date: Thu, 05 Feb 2009 14:34:06 -0500 [thread overview]
Message-ID: <1233862446.5676.28.camel@balanced-tree> (raw)
In-Reply-To: <18827.7191.646173.99255@mariner.uk.xensource.com>
On Thu, 2009-02-05 at 17:04 +0000, Ian Jackson wrote:
> handle SIGUSR2 nostop noprint
> break serial_ioport_write if (addr&7)==1
> cont
> * do whatever it is that makes the VM stuck
> * when it next stops it will be in serial_ioport_write setting
> the IER. So
> print val
> print *s
This breakpoint is triggered for all messages printed by the kernel,
which always showed up with no delay; but it is only occasionally
triggered for strings printed by userspace, even after forcing those
strings to show up by sending keystrokes.
Here is one of the latter cases. (I am sitting at a
“root@andersk-intrepid:~# ” prompt, repeatedly pressing Enter. Each
keypress causes the previous prompt to show up, followed by a newline,
and the current prompt is stalled.)
Breakpoint 1, serial_ioport_write (opaque=0xb342e0, addr=1, val=5)
at /home/andersk/xen-3-3.3.1/debian/build/build-utils_amd64/tools/ioemu-dir/hw/serial.c:413
413 {
(gdb) print val
$5 = 5
(gdb) print *s
$6 = {divider = 1, rbr = 0 '\0', thr = 32 ' ', tsr = 32 ' ', ier = 5 '\005', iir = 193 '�',
lcr = 19 '\023', mcr = 11 '\v', lsr = 96 '`', msr = 176 '�', scr = 0 '\0', fcr = 129 '\201',
thr_ipending = 1, irq = 0xb1d610, chr = 0xb122a0, last_break_enable = 0, base = 0,
it_shift = 0, baudbase = 115200, tsr_retry = 0, last_xmit_ts = 380482341502, recv_fifo = {
data = '\r' <repeats 16 times>, count = 0 '\0', itl = 8 '\b', tail = 0 '\0',
head = 0 '\0'}, xmit_fifo = {data = "repid:~# rsk-int", count = 0 '\0', itl = 0 '\0',
tail = 9 '\t', head = 9 '\t'}, fifo_timeout_timer = 0xb31ad0, timeout_ipending = 0,
transmit_timer = 0xb31b00, char_transmit_time = 78120, poll_msl = -1,
modem_status_poll = 0xb327e0}
Anders
next prev parent reply other threads:[~2009-02-05 19:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 2:23 Serial console hangs with Linux 2.6.20 HVM guest Anders Kaseorg
2009-02-05 17:04 ` Ian Jackson
2009-02-05 19:34 ` Anders Kaseorg [this message]
2009-02-05 21:52 ` Anders Kaseorg
2009-02-10 15:34 ` Ian Jackson
2009-02-10 18:20 ` Anders Kaseorg
2009-02-11 16:08 ` [PATCH] IRQ handling race and spurious IIR read in serial/8250.c Ian Jackson
2009-02-19 17:52 ` Ian Jackson
2009-02-19 17:52 ` Ian Jackson
2009-02-19 18:37 ` [Xen-devel] " Markus Armbruster
2009-02-19 18:37 ` Markus Armbruster
2009-02-19 19:24 ` Jeremy Fitzhardinge
2009-02-09 17:57 ` Serial console hangs with Linux 2.6.20 HVM guest Ian Jackson
2009-02-09 18:13 ` Anders Kaseorg
-- strict thread matches above, loose matches on Subject: below --
2009-02-04 1:50 Anders Kaseorg
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=1233862446.5676.28.camel@balanced-tree \
--to=andersk@mit.edu \
--cc=Ian.Jackson@eu.citrix.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.