WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Xen debug help

To: Jérôme Petazzoni <jp@xxxxxxxx>
Subject: [Xen-devel] Re: Xen debug help
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Tue, 30 Nov 2004 23:32:37 +0000
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 30 Nov 2004 23:33:26 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: Your message of "Tue, 30 Nov 2004 23:56:17 +0100." <41ACFA91.50208@xxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
[back on list]

> > How about one other thing to try first. Have you got a serial
> > line connected to the machine?  
> 
> I can connect one if needed.

Great -- probably easier than writing down the VGA text console.
The user manual gives details of how to configure the serial line.

> > Have you built from source before?
> 
> Actually I'm building from xen-2.0-testing.bk (I thought it would be the 
> most stable release).

[The testing tree is being used to trial a number of things to
improve Xserver support. It's remained pretty stable, though]

OK, please apply and build the the attached patch. It's a hack
such that all domain's console will go via the main console
e.g. serial port.

When you do the resume, it should capture the domains death
throws.

Hopefully this will give us what we need, but you may need to
make the -syms file available for your kernel too.

Best,
Ian

---

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/11/30 23:24:33+00:00 iap10@xxxxxxxxxxxxxxxxxxx 
#   Route unprivileged domain's console to the main console (e.g. serial)
# 
# xen/Rules.mk
#   2004/11/30 23:24:31+00:00 iap10@xxxxxxxxxxxxxxxxxxx +2 -2
#   Route unprivileged domain's console to the main console (e.g. serial)
# 
# linux-2.6.9-xen-sparse/drivers/xen/console/console.c
#   2004/11/30 23:24:31+00:00 iap10@xxxxxxxxxxxxxxxxxxx +1 -1
#   Route unprivileged domain's console to the main console (e.g. serial)
# 
diff -Nru a/linux-2.6.9-xen-sparse/drivers/xen/console/console.c 
b/linux-2.6.9-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6.9-xen-sparse/drivers/xen/console/console.c      Tue Nov 30 
23:25:07 2004
+++ b/linux-2.6.9-xen-sparse/drivers/xen/console/console.c      Tue Nov 30 
23:25:07 2004
@@ -174,7 +174,7 @@
 void xen_console_init(void)
 #endif
 {
-    if ( xen_start_info.flags & SIF_INITDOMAIN )
+    if ( 1 || xen_start_info.flags & SIF_INITDOMAIN )
     {
         if ( xc_mode == XC_DEFAULT )
             xc_mode = XC_SERIAL;
diff -Nru a/xen/Rules.mk b/xen/Rules.mk
--- a/xen/Rules.mk      Tue Nov 30 23:25:07 2004
+++ b/xen/Rules.mk      Tue Nov 30 23:25:07 2004
@@ -1,6 +1,6 @@
 
-verbose     ?= n
-debug       ?= n
+verbose     ?= y
+debug       ?= y
 debugger    ?= n
 perfc       ?= n
 trace       ?= n


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Re: Xen debug help, Ian Pratt <=