Bug 13855 - sles10sp2 i386 guest hangs on reboot
Summary: sles10sp2 i386 guest hangs on reboot
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Virtualization
Classification: Unclassified
Component: kvm (show other bugs)
Hardware: All Linux
: P1 high
Assignee: virtualization_kvm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-27 17:12 UTC by Ram Pai
Modified: 2012-06-13 14:25 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.31-rc2
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Ram Pai 2009-07-27 17:12:10 UTC
Create and install sles10sp2 i386 guest using the following command

qemu-system-x86_64 -cdrom SLES-10-SP2-DVD-i386-GMC-DVD1.iso -hda
sles10sp2.i386.raw.img -m 1024 -net nic -net tap,script=/etc/qemu-ifup -vnc :10
-name sles10sp2_i386_guest -boot dc

reboot the guest. The second reboot should hang the guest. If not try a couple more times.


Note the problem cannot be reproduced 
   on amd box. or  with RHEL guests 
   can be consistently reproduced with -cdrom SLES-10-SP2-DVD-i386-GMC-DVD1.iso
   and -boot dc (in other words the default boot has to the SLES10SP2 cdrom)


The problem can be reproduced with opensuse 10.2 guests too.

I tried debugging the issue. I put in a couple of prints in bios.bin from the bochs, and find that the hang is consistently seen in the function 
ata_detect() sometime after the call to 


if (ata_cmd_data_in(device,ATA_CMD_IDENTIFY_DEVICE, 1, 0, 0, 0, 0L, 0L, get_SS(),buffer) !=0 )
        BX_PANIC("ata-detect: Failed to detect ATA device\n");



There are times when dmesg will report something like this

emulation failed (pagetable) rip ff1d 69 74 74 65


there are other incarnations of the symptoms too, all hinting at some major corruption.
Comment 1 Roland Kletzing 2009-08-10 23:32:59 UTC
thanks for the report.

one advice to get better response:
as this is a bugtracker for tracking bugs in the vanilla kernel and not heavily patched vendor kernels, please either provide a pointer to your (possibly existing) bugreport at novell or open a bugreport at http://bugzilla.novell.com first.
Comment 2 Roland Kletzing 2009-08-21 21:27:32 UTC
Ram Pai, could you describe where exactly does the guest hang ?

furthermore - are these ones probably related :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425648
http://qemu-forum.ipi.fi/viewtopic.php?f=10&t=3935

?

is kqemu being used here and if so, does adding "-no-kqemu" make a difference ?

Note You need to log in before you can comment on or make changes to this bug.