Bug 704096

Summary: push rhel4.9 guest into S3 state may lead guest kernel panic
Product: Red Hat Enterprise Linux 4 Reporter: Xiaoqing Wei <xwei>
Component: kernelAssignee: Red Hat Kernel Manager <kernel-mgr>
Status: CLOSED WONTFIX QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: ddutile, juzhang, michen, mkenneth, tburke, virt-maint
Target Milestone: rc   
Target Release: 4.9   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 16:18:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
collected from guest serial
none
lspci output on rhel4.9 host
none
SOS report collected from rhel4.9 bare metal host none

Description Xiaoqing Wei 2011-05-12 07:19:45 UTC
Created attachment 498445 [details]
collected from guest serial

Description of problem:
push rhel4.9 guest into S3 state may lead guest kernel panic


Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.161.el6.x86_64

How reproducible:
sometimes

Steps to Reproduce:
1.qemu-kvm -name 49-32 -monitor stdio -chardev..\
 -device isa-serial..\
-drive file=4.9-32.qcow2,index=0,if=none,id=drive-ide0-0-0,media=disk,cache=none,format=qcow2,aio=native \
\
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
-device rtl8139,netdev=..,mac=9a:fe:9d:9b:cc:8d,id=..,bus=pci.0,addr=0x3 \
-netdev tap,id=id4TU0O7,ifname=t0-134929-ocyE,script=/qemu-ifup-switch,downscript=no \
-m 1024 -smp 1,cores=1,threads=1,sockets=1 \
-cpu cpu64-rhel6,+sse2,+x2apic -vnc :0 \
-rtc base=utc,clock=host,driftfix=none \
-M rhel6.1.0 -boot order=cdn,once=c,menu=off \
-usbdevice tablet -no-kvm-pit-reinjection \
-enable-kvm \
-balloon none
2.echo mem > /sys/power/state
3.
  
Actual results:
guest kernel panic

Expected results:
guest S3 and resume normally

Additional info:
Host info:
2.6.32-131.0.9.el6.x86_64
8G RAM
CPU info:
processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
stepping	: 10
cpu MHz		: 2659.748
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 3
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 13
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority


top info(show threads):
Tasks:   2 total,   1 running,   1 sleeping,   0 stopped,   0 zombie
Cpu(s): 25.4%us,  0.1%sy,  0.0%ni, 74.3%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   8126888k total,   591604k used,  7535284k free,    22276k buffers
Swap: 10239992k total,        0k used, 10239992k free,    31376k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                       
18013 root      20   0 1448m 225m 2992 S 200.0  2.8   0:08.56 qemu-kvm                     
18043 root      20   0 1448m 225m 2992 R 200.0  2.8  19:41.66 qemu-kvm                     


[root@rhel6xwei ~]# kvm_stat -1
efer_reload                    0         0
exits                   18332222      2006
fpu_reload                  1270         0
halt_exits                225137         0
halt_wakeup               114429         0
host_state_reload        2061103         7
hypercalls                     0         0
insn_emulation           1635591         0
insn_emulation_fail            0         0
invlpg                   6256707         0
io_exits                 2156521         0
irq_exits                2427870      2005
irq_injections            311828         0
irq_window                 16200         0
largepages                     6         0
mmio_exits                 15182         0
mmu_cache_miss             55062         0
mmu_flooded                11791         0
mmu_pde_zapped             75016         0
mmu_pte_updated                0         0
mmu_pte_write             142403         0
mmu_recycled                   0         0
mmu_shadow_zapped          63117         0
mmu_unsync                     0         0
nmi_injections                 0         0
nmi_window                     0         0
pf_fixed                 4389950         0
pf_guest                 1050697         0
remote_tlb_flush              47         0
request_irq                    0         0
signal_exits                   2         0
tlb_flush                6465315         0






guest info:

kernel kernel-smp-2.6.9-100.EL.i686.rpm  



full cmd:

qemu-kvm -name 49-32 -monitor stdio -chardev socket,id=serial_id_20110420-134929-ocyE,path=/tmp/serial-20110420-134929-ocyE,server,nowait -device isa-serial,chardev=serial_id_20110420-134929-ocyE -drive file=/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/kvm/images/RHEL-4.9-32.qcow2,index=0,if=none,id=drive-ide0-0-0,media=disk,cache=none,format=qcow2,aio=native -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -device rtl8139,netdev=id4TU0O7,mac=9a:fe:9d:9b:cc:8d,id=ndev00id4TU0O7,bus=pci.0,addr=0x3 -netdev tap,id=id4TU0O7,ifname=t0-134929-ocyE,script=/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/kvm/scripts/qemu-ifup-switch,downscript=no -m 1024 -smp 1,cores=1,threads=1,sockets=1 -cpu cpu64-rhel6,+sse2,+x2apic -vnc :0 -rtc base=utc,clock=host,driftfix=none -M rhel6.1.0 -boot order=cdn,once=c,menu=off -usbdevice tablet -no-kvm-pit-reinjection -enable-kvm -balloon none






other info:
#echo mem > /sys/power/state

is not always work.sometimes guest didn't enter S3 state.

Comment 2 Don Dutile (Red Hat) 2011-06-08 21:39:45 UTC
Does this work on bare-metal rhel4.9 ?

Comment 3 Xiaoqing Wei 2011-06-13 12:35:03 UTC
(In reply to comment #2)
> Does this work on bare-metal rhel4.9 ?

seems not,pls see cmds below:

[root@dhcp-8-122 ~]# /etc/init.d/acpid status
acpid (pid 13510) is running...

[root@dhcp-8-122 ~]# uname -r
2.6.9-100.ELsmp
[root@dhcp-8-122 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          8048         90       7958          0          9         38
-/+ buffers/cache:         42       8006
Swap:         5023          0       5023
[root@dhcp-8-122 ~]# cat /sys/power/state 
standby mem disk 
[root@dhcp-8-122 ~]# echo mem > /sys/power/state 
[root@dhcp-8-122 ~]# echo $?
1
[root@dhcp-8-122 ~]# dmesg 
[root@dhcp-8-122 ~]#

Comment 4 Xiaoqing Wei 2011-06-13 12:36:20 UTC
Created attachment 504431 [details]
lspci output  on rhel4.9 host

lspci output  on rhel4.9 host

Comment 5 Xiaoqing Wei 2011-06-13 12:38:58 UTC
Created attachment 504432 [details]
SOS report collected from rhel4.9 bare metal host

SOS report collected from rhel4.9 bare metal host

hope this info would help

Best Regards,
Xiaoqing.

Comment 7 Jiri Pallich 2012-06-20 16:18:09 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.