Bug 1168545

Summary: virtio rng device block guest hibernate
Product: Red Hat Enterprise Linux 7 Reporter: mazhang <mazhang>
Component: qemu-kvmAssignee: Amit Shah <amit.shah>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: dyuan, hhuang, juzhang, michen, rbalakri, virt-maint, wzhang, zhwang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-04 05:59:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 923626    

Description mazhang 2014-11-27 09:34:14 UTC
Description of problem:
virtio rng device block guest hibernate

Version-Release number of selected component (if applicable):

Host:
qemu-img-1.5.3-81.el7.x86_64
qemu-kvm-debuginfo-1.5.3-81.el7.x86_64
ipxe-roms-qemu-20130517-6.gitc4bce43.el7.noarch
qemu-kvm-tools-1.5.3-81.el7.x86_64
qemu-kvm-1.5.3-81.el7.x86_64
libvirt-daemon-driver-qemu-1.2.8-6.el7.x86_64
qemu-kvm-common-1.5.3-81.el7.x86_64
3.10.0-208.el7.x86_64

Guest:
3.10.0-210.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.Boot guest with virtio rng device.
/usr/libexec/qemu-kvm \
-M pc \
-cpu SandyBridge \
-m 4G \
-smp 4,sockets=120,cores=2,threads=1,maxcpus=240 \
-enable-kvm \
-name rhel7 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \
-k en-us \
-rtc base=localtime,clock=host,driftfix=slew \
-nodefaults \
-monitor stdio \
-qmp tcp:0:5555,server,nowait \
-boot menu=on \
-bios /usr/share/seabios/bios.bin \
-monitor unix:/tmp/monitor2,server,nowait \
-vga qxl \
-spice port=5910,disable-ticketing \
-usb \
-device usb-tablet,id=tablet0 \
-drive file=/home/rhel7-64.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads \
-device virtio-blk-pci,scsi=off,bus=pci.0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
-global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 \
-serial unix:/tmp/ttyS0,server,nowait \
-monitor unix:/tmp/monitor-unix,server,nowait \
-device virtio-rng-pci,id=rng0,bus=pci.0,addr=0x6 \

2.Try hibernate guest.
#pm-hibernate

3.

Actual results:
Guest hang, not enter s4 state.

Expected results:
enter s4 state.

Additional info:
Without virtio rng device, hibernate and resume works well.