From: Keir Fraser Subject: Re: xen-3.0.3 occur kernel panic Date: Wed, 20 Feb 2008 08:16:28 +0000 Message-ID: References: <47BB901C.9080302@SierraAtlantic.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0945109263==" Return-path: In-Reply-To: <47BB901C.9080302@SierraAtlantic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Wei Jiang , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0945109263== Content-type: multipart/alternative; boundary="B_3286340190_20678762" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3286340190_20678762 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Xen 3.0.3 is old. Can you repro this with Xen 3.1.3 or 3.2.0 or current xen-unstable? -- Keir On 20/2/08 02:27, "Wei Jiang" wrote: > Hi everybody, > > the xen-3.0.3 will occur a kernel panic when attempt to run > a full virtualization guest OS. > > the configure of guest OS as below: > --------------------------------------------------------------------------- > # Automatically generated xen config file > name = "fvguest" > builder = "hvm" > memory = "500" > disk = [ 'file:/mnt/fvguest,hda,w', ] > vif = [ 'type=ioemu, mac=00:16:3e:23:21:ec, bridge=xenbr0', ] > uuid = "7301d7ec-e036-11d7-d14b-b21be1c783be" > device_model = "/usr/lib64/xen/bin/qemu-dm" > kernel = "/usr/lib/xen/boot/hvmloader" > vnc=1 > vncunused=1 > apic=1 > acpi=1 > pae=1 > > vcpus=1 > serial = "pty" # enable serial console > on_reboot = 'restart' > on_crash = 'restart' > > --------------------------------------------------------------------------- > > When I run such a guest OS, the kernel panic is occurred. > > # xm create fvguest > > ----------- [cut here ] --------- [please bite here ] --------- > Kernel BUG at mm/memory.c:2245 > invalid opcode: 0000 [1] SMP > last sysfs file: /block/loop6/range > CPU 0 > Modules linked in: loop xt_physdev iptable_filter ip_tables x_tables tun > bridge netloop netbk blktap blkbk autofs4 hidp rfcomm l2cap bluetooth sunrpc > ipv6 video sbs i2c_ec i2c_core button battery asus_acpi ac parport_pc lp > parport sr_mod cdrom sg shpchp serio_raw serial_core pcspkr ext3 jbd ehci_hcd > ohci_hcd uhci_hcd > Pid: 4096, comm: qemu-dm Tainted: PF 2.6.18-8.el5xen #1 > RIP: e030:[] [] > __handle_mm_fault+0x379/0xf46 > RSP: e02b:ffff8807ac451de8 EFLAGS: 00010202 > RAX: ffffffff805093c0 RBX: 0000000000000df8 RCX: 00003ffffffff000 > RDX: 00000007abf6edf8 RSI: 0000000000000067 RDI: ffff8807db3db040 > RBP: ffff8807db3db040 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 > R13: ffff8807abf6edf8 R14: 00002aaacafbf000 R15: ffff8807d2dbf870 > FS: 00002aaaaaabd010(0000) GS:ffffffff8058d000(0000) knlGS:0000000000000000 > CS: e033 DS: 0000 ES: 0000 > Process qemu-dm (pid: 4096, threadinfo ffff8807ac450000, task > ffff8807d42d1860) > Stack: 00000000fffffff2 0000000180274661 ffff8807db3db040 ffff8807ac73d2b8 > 0000000000001000 00002aaacb7be000 ffff8807db3db040 ffffffff802606e9 > ffff8807db3db0a8 ffffffff80221dde > Call Trace: > [] _spin_lock_irqsave+0x9/0x14 > [] __up_read+0x19/0x7f > [] do_page_fault+0xe48/0x11dc > [] error_exit+0x0/0x6e > > > Code: 0f 0b 68 21 bd 46 80 c2 c5 08 49 8b 87 90 00 00 00 48 c7 44 > RIP [] __handle_mm_fault+0x379/0xf46 > RSP > <0>Kernel panic - not syncing: Fatal exception > > > The system is redhat 5: > # cat /etc/redhat-release erver release 5 (Tikanga) > Red Hat Enterprise Linux Server release 5 (Tikanga) > # uname -a > Linux wjiang 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:29:35 EST 2007 x86_64 x86_64 > x86_64 GNU/Linux > > > And the xen occurred the panic is 3.0.3, > # cat /usr/share/doc/xen-3.0.3/README > ################################ > __ __ _____ ___ > \ \/ /___ _ __ |___ / / _ \ > \ // _ \ '_ \ |_ \| | | | > / \ __/ | | | ___) | |_| | > /_/\_\___|_| |_| |____(_)___/ > > ################################ > >> >From the kernel panic message, I doubt this is qemu-dm bug, so I download >> the xen 3.0.3 > from official site. I recompiled the qemu-dm and used it instead of the system > qemu-dm. But the > panic was still occurred when running the 'xm create fvguest'. Look the > /var/log/message and > /var/log/xen/*, there are no any useful message . > > could anybody show any helps or advices? Also, If I want to debug it, > what I need to do? > As I know, the kdump is not supported in xen kernel. > > Thanks advances, > > WJ > > > > ______________________________________________________________________________ > ____________________________________ > DISCLAIMER:"The information contained in this message and the attachments (if > any) may be privileged and confidential and protected from disclosure. You are > hereby notified that any unauthorized use, dissemination, distribution or > copying of this communication, review, retransmission, or taking of any action > based upon this information, by persons or entities other than the intended > recipient, is strictly prohibited. If you are not the intended recipient or an > employee or agent responsible for delivering this message, and have received > this communication in error, please notify us immediately by replying to the > message and kindly delete the original message, attachments, if any, and all > its copies from your computer system. Thank you for your cooperation." > ______________________________________________________________________________ > __________________________________ > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --B_3286340190_20678762 Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable Re: [Xen-devel] xen-3.0.3 occur kernel panic Xen 3= .0.3 is old. Can you repro this with Xen 3.1.3 or 3.2.0 or current xen-unsta= ble?

 -- Keir

On 20/2/08 02:27, "Wei Jiang" <WEI.JIANG@SierraAtlantic.com>= ; wrote:

Hi everybody,

the xen-3.0.3 will occur a kernel panic when attempt to run
a full virtualization guest OS.

the configure of guest OS as below:
---------------------------------------------------------------------------=
# Automatically generated xen config file
name =3D "fvguest"
builder =3D "hvm"
memory =3D "500"
disk =3D [ 'file:/mnt/fvguest,hda,w', ]
vif =3D [ 'type=3Dioemu, mac=3D00:16:3e:23:21:ec, bridge=3Dxenbr0', ]
uuid =3D "7301d7ec-e036-11d7-d14b-b21be1c783be"
device_model =3D "/usr/lib64/xen/bin/qemu-dm"
kernel =3D "/usr/lib/xen/boot/hvmloader"
vnc=3D1
vncunused=3D1
apic=3D1
acpi=3D1
pae=3D1

vcpus=3D1
serial =3D "pty" # enable serial console
on_reboot   =3D 'restart'
on_crash    =3D 'restart'

---------------------------------------------------------------------------=

When I run such a guest OS, the kernel panic is occurred.

# xm create fvguest

----------- [cut here ] --------- [please bite here ] ---------
Kernel BUG at mm/memory.c:2245
invalid opcode: 0000 [1] SMP
last sysfs file: /block/loop6/range
CPU 0
Modules linked in: loop xt_physdev iptable_filter ip_tables x_tables tun br= idge netloop netbk blktap blkbk autofs4 hidp rfcomm l2cap bluetooth sunrpc i= pv6 video sbs i2c_ec i2c_core button battery asus_acpi ac parport_pc lp parp= ort sr_mod cdrom sg shpchp serio_raw serial_core pcspkr ext3 jbd ehci_hcd oh= ci_hcd uhci_hcd
Pid: 4096, comm: qemu-dm Tainted: PF     2.6.18-8.el5xe= n #1
RIP: e030:[<ffffffff80208b33>]  [<ffffffff80208b33>] __han= dle_mm_fault+0x379/0xf46
RSP: e02b:ffff8807ac451de8  EFLAGS: 00010202
RAX: ffffffff805093c0 RBX: 0000000000000df8 RCX: 00003ffffffff000
RDX: 00000007abf6edf8 RSI: 0000000000000067 RDI: ffff8807db3db040
RBP: ffff8807db3db040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: ffff8807abf6edf8 R14: 00002aaacafbf000 R15: ffff8807d2dbf870
FS:  00002aaaaaabd010(0000) GS:ffffffff8058d000(0000) knlGS:0000000000= 000000
CS:  e033 DS: 0000 ES: 0000
Process qemu-dm (pid: 4096, threadinfo ffff8807ac450000, task ffff8807d42d1= 860)
Stack:  00000000fffffff2  0000000180274661  ffff8807db3db040= ffff8807ac73d2b8
 0000000000001000  00002aaacb7be000  ffff8807db3db040  = ffffffff802606e9
 ffff8807db3db0a8  ffffffff80221dde
Call Trace:
 [<ffffffff802606e9>] _spin_lock_irqsave+0x9/0x14
 [<ffffffff80221dde>] __up_read+0x19/0x7f
 [<ffffffff80262fc6>] do_page_fault+0xe48/0x11dc
 [<ffffffff8025cb53>] error_exit+0x0/0x6e


Code: 0f 0b 68 21 bd 46 80 c2 c5 08 49 8b 87 90 00 00 00 48 c7 44
RIP  [<ffffffff80208b33>] __handle_mm_fault+0x379/0xf46
 RSP <ffff8807ac451de8>
 <0>Kernel panic - not syncing: Fatal exception


The system is redhat 5:
# cat /etc/redhat-release erver release 5 (Tikanga)
Red Hat Enterprise Linux Server release 5 (Tikanga)
# uname -a           &nbs= p;            &n= bsp;            =             &nbs= p;      
Linux wjiang 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:29:35 EST 2007 x86_64 x86= _64 x86_64 GNU/Linux


And the xen occurred the panic is 3.0.3,
# cat /usr/share/doc/xen-3.0.3/README
################################
 __  __          &nb= sp; _____  ___
 \ \/ /___ _ __   |___ / / _ \
  \  // _ \ '_ \    |_ \| | | |
  /  \  __/ | | |  ___) | |_| |
 /_/\_\___|_| |_| |____(_)___/

################################

>From the kernel panic message, I doubt  this  is qemu-dm bug,= so I download the xen 3.0.3
from official site. I recompiled the qemu-dm and used it instead of the sys= tem qemu-dm. But the
panic was still occurred  when running the 'xm create fvguest'. Look t= he /var/log/message and
/var/log/xen/*, there are no any useful message .

could anybody  show any  helps  or  advices?  Also= , If I want to debug it, what I need to do?
As I know, the kdump is not supported in xen kernel.

Thanks advances,

WJ



___________________________________________________________________________= _______________________________________
DISCLAIMER:"The information contained in this message and the attachme= nts (if any) may be privileged and confidential and protected from disclosur= e. You are hereby notified that any unauthorized use, dissemination, distrib= ution or copying of this communication, review, retransmission, or taking of= any action based upon this information, by persons or entities other than t= he intended recipient, is strictly prohibited. If you are not the intended r= ecipient or an employee or agent responsible for delivering this message, an= d have received this communication in error, please notify us immediately by= replying to the message and kindly delete the original message, attachments= , if any, and all its copies from your computer system. Thank you for your c= ooperation."
___________________________________________________________________________= _____________________________________


<= FONT FACE=3D"Monaco, Courier New">_____________= __________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

--B_3286340190_20678762-- --===============0945109263== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0945109263==--