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-users

RE: [Xen-users] using HYPERVISOR_console_io

To: "Michael Levenhagen" <mjleven@xxxxxxxxxx>
Subject: RE: [Xen-users] using HYPERVISOR_console_io
From: "Petersson, Mats" <mats.petersson@xxxxxxx>
Date: Mon, 24 Oct 2005 18:43:24 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 24 Oct 2005 16:40:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXYt1L2JMqj+oUdRWa/CklRu0WdjQAAf5uQ
Thread-topic: [Xen-users] using HYPERVISOR_console_io
 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Michael Levenhagen
> Sent: 24 October 2005 17:21
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] using HYPERVISOR_console_io
> 
> I just setup a serial line connecting my xen development 
> machine to my workstation. I use minicom on my workstation to 
> connect to the serial line. I see nothing on it when I boot 
> xen. I know that the connection works because when I boot my 
> xen machine into linux I can start minicom on it and see the 
> characters in minicom on my workstation.
> 
> What output can be directed to the serial port?
> What configuration am I missing?
> Is there any documentation on xen boot options?

Probably a basic question, but: 
com1=115200,8n1 console=vga,com1 sync_console 
Is what's on my command line for Xen. It works for me... 

On the Dom0 line, I've got "console=ttyS0"

sync_console is a useful thing if you're debugging problems where the
system crashes in a triple-fault and thus the console output gets to the
buffer but isn't sent to the terminal program by the time the machine
reboots. 

--
Mats
> 
> thanks
> Mike
> 
> Ian Pratt wrote:
> 
> > 
> >
> >
> >  
> >
> >>I'm porting a kernel from 2.0.7 to 3.0 and need to do some 
> low level 
> >>debugging.
> >>
> >>It's unclear to me what need's to be done to get 
> HYPERVISOR_console_io 
> >>to work.
> >>I've compiled xen with debug=y. My simple kernel is as follows.
> >>
> >>void start_kernel( start_info_t *start_info ) {
> >>        char *message = "hello\n";
> >>
> >>        HYPERVISOR_console_io(CONSOLEIO_write,
> >>strlen(message), message); }
> >>
> >>I'm fairly confident that I'm entering start_kernel because I can 
> >>change the behavior by putting a while(1) after the HYPERVISOR call.
> >>
> >>Where should I see the output if things are working? I don't see 
> >>anything on the PC's monitor.
> >>    
> >>
> >
> >Have you got a serial console set up? It's pretty useful to have xen 
> >debug output interspersed with domain output when debugging, 
> plus the 
> >'xen magic keys' are useful too.
> > 
> >  
> >
> >>How do I view the boot messages for xen? IIRC I used xm under
> >>2.0.7 but I don't see any options with 3.0.
> >>    
> >>
> >
> >'xm dmesg' should also show you output.
> >
> >Ian
> >
> >
> >  
> >
> 
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>