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

Re: [Xen-devel] Using xen-unstable, dom0 hangs during boot

To: "Nadolski, Ed" <Ed.Nadolski@xxxxxxx>
Subject: Re: [Xen-devel] Using xen-unstable, dom0 hangs during boot
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Fri, 26 Feb 2010 16:46:22 +0200
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Feb 2010 06:46:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8115AF16522A3D4383C1FF753036713F9B1B52D8@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <8115AF16522A3D4383C1FF753036713F9B1B522B@xxxxxxxxxxxxxxxxx> <4B8703B9.9000207@xxxxxxxx> <8115AF16522A3D4383C1FF753036713F9B1B52D8@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
On Fri, Feb 26, 2010 at 06:33:27AM -0700, Nadolski, Ed wrote:
> > -----Original Message-----
> > From: Jeremy Fitzhardinge [mailto:jeremy@xxxxxxxx]
> > Sent: Thursday, February 25, 2010 4:12 PM
> > To: Nadolski, Ed
> > Cc: Xen-devel@xxxxxxxxxxxxxxxxxxx
> > Subject: Re: [Xen-devel] Using xen-unstable, dom0 hangs during boot
> >
> > On 02/25/2010 02:18 PM, Nadolski, Ed wrote:
> > > I'm running Fedora 12 (kernel 2.6.31.5-127.fc12.x86_64) on a Dell
> > T7500 Xeon with VT-x and VT-d. After building xen-unstable and
> > rebooting, the dom0 Linux hangs a few seconds after it gets control
> > from Xen, and I have to power-cycle to recover.   Here are the last
> > messages before it hangs:
> > >
> > > [    2.766882] loop: module loaded
> > > [    2.767736] input: Macintosh mouse button emulation as
> > /devices/virtual/input/input2
> > > [    2.769396] xen_set_ioapic_routing: irq 20 gsi 20 vector 20 ioapic
> > 0 pin 20 triggering 1 polarity 1
> > > [    2.770342] achi 0000:00:1f.2: PCI INT C ->  GSI 20 (level, low) -
> > >  IRQ 20
> > > [    2.771158] ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3
> > Gbps 0x27 impl SATA mode
> > > [    2.772078] ahci 0000:00:1f.2: flags: 64bit ncq sntf led clo pio
> > ems
> > > <<hangs at this point>>
> > >
> > > Thoughts?  Any grub parameters I should try for Linux and/or Xen?
> > Any further info I can provide?
> > >
> >
> > What kernel is this?  What's the boot command line?
> 
> The build downloaded the kernel from:
> 
> + git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git 
> linux-2.6-pvops.git.tmp
> 
> The serial console output stops before the Linux kernel messages show up, but 
> here is what I have in grub.conf:
> 
> title Fedora12-Xen (2.6.31.6) Xen and dom0 serial console
>         root (hd0,0)
>         kernel /xen-4.0.0-rc4.gz com1=115200,8n1 console=com1
>         module /vmlinuz-2.6.31.6 ro 
> root=UUID=d9c5bf5d-23d1-445e-9210-e6ad0798a0ba nomodeset LANG=en_US.UTF-8 
> SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us console=tty0 
> console=ttyS0,115200
>         module /initramfs-2.6.31.6.img
> 
> but it still fails the same way regardless of the vmlinuz parameters.  With 
> the serial port enabled, the hang happens a bit sooner, at the serial driver 
> init.  Also, no change if I disable VTx/VTd in the BIOS.
> 

You should use grub configuration like this:

title        pv_ops dom0 with a serial console
root         (hd0,0)
kernel       /xen-4.0.0-rc4.gz dom0_mem=1024M loglvl=all guest_loglvl=all 
sync_console console_to_ring com1=115200,8n1 console=com1
module       /vmlinuz-2.6.31.6 ro root=/dev/vg00/lv01 console=hvc0 
earlyprintk=xen nomodeset
module       /initrd-2.6.31.6.img

Modify the root parameter etc for your environment.

Note that vmlinuz (dom0 kernel) needs to have "console=hvc0 earlyprintk=xen"
to log to a serial console through Xen.

-- Pasi


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