Bug 141497

Summary: XEN - kernel panics when attempting to connect to serial port for console
Product: [Fedora] Fedora Reporter: AJ Lewis <157070.alewis>
Component: kernelAssignee: Rik van Riel <riel>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.9-1.1020_FC4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-07 15:46:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
console output from bootup none

Description AJ Lewis 2004-12-01 17:26:07 UTC
Description of problem:
When booting a xen system with both xen and the xen-linux kernel consoles on the
serial line, I get a panic.  If I leave the linux console line at console=tty0
everything works, but I don't get kernel messages on the serial line after bootup.

Version-Release number of selected component (if applicable):
kernel-xen0-2.6.9-1.1008_FC4
xen-2.6.9.gz from http://people.redhat.com/riel dated 30-Nov-2004 14:23
xen-2.0-install.tgz tools install

How reproducible:
every boot with serial consoles turned on

Steps to Reproduce:
1. turn on serial lines for xen with the following in grub
kernel /xen-2.6.9.gz dom0_mem=524288 com1=115200,8n1
2. turn on serial lines for linux console with the following in grub
module /vmlinuz-2.6.9-1.1008_FC4xen0 root=/dev/vg0/root ro console=ttyS0,115200
3. boot xen
  
Actual results:
kernel panic

Expected results:
normal bootup

Additional info:
The following link *may* shed some light on the problem
http://article.gmane.org/gmane.comp.emulators.xen.devel/3463

Grub config is as follows:
default=4
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

title XEN 2.0
        root (hd0,0)
        kernel /xen-2.6.9.gz dom0_mem=524288 com1=115200,8n1
        module /vmlinuz-2.6.9-1.1008_FC4xen0 root=/dev/vg0/root ro
console=ttyS0,115200 3
        module /initrd-2.6.9-1.1008_FC4xen0.img

Comment 1 AJ Lewis 2004-12-01 17:26:08 UTC
Created attachment 107723 [details]
console output from bootup

Comment 2 AJ Lewis 2004-12-06 19:00:39 UTC
Turning the hw serial driver off in the kernel config seemed to fix this for me
- might want to consider doing that in the default xen0 config.

Comment 3 Rik van Riel 2004-12-06 19:06:22 UTC
With the hw serial driver off in the kernel configuration, can you
still use the serial ports from within the xen0 domain, and can you
still run serial console to that domain ?

If yes, I'll switch off the serial driver in the xen0 kernel.

Comment 4 AJ Lewis 2004-12-06 19:31:12 UTC
Yeah, it seemed to work fine with the hw serial driver off - I think I
just turned it into a module for my testing, but I can't seem to find
that config anymore.

If you shut it off and rebuild, I can verify it for you.

Comment 5 Rik van Riel 2004-12-06 19:37:55 UTC
OK, I disabled CONFIG_SERIAL_8250 for the xen0 kernel.  I'll rebuild
soonish (need to do a RHEL4 build first).

Comment 6 Rik van Riel 2004-12-07 01:41:18 UTC
I am now building kernel-2.6.9-1.1020_FC4, which has the serial driver
disabled.  Please test when this kernel becomes available in our build
system.

Comment 7 AJ Lewis 2004-12-07 15:46:27 UTC
That fixes it - the above grub config for console now works.