Hide Forgot
The virsh command will hang there while we do S3 with guest as the following order dompmsuspend=>dompmwakeup=>save=>restore=>dompmsuspend(the virsh command will hang here) pkg info kernel-3.10.0-47.el7.x86_64 qemu-kvm-rhev-1.5.3-14.el7.x86_64 libvirt-1.1.1-12.el7.x86_6 steps 1.# getenforce Enforcing 2.Prepare a guest with qemu-ga ENV # virsh list --all Id Name State ---------------------------------------------------- 7 rhel7 running 3.Start the qemu-ga service in guest # systemctl start qemu-guest-agent.service 4.Do s3 with the guest,then wakeup it,however,the guest can't back to the previous status before pmsuspend #virsh dompmsuspend rhel7 --target mem #virsh dompmwakeup rhel7 5.Save and restore the guest # virsh save rhel7 /tmp/rhel7.save #virsh restore /tmp/rhel7.save 6.Do s3 with the guest again, the virsh command will hang here #virsh dompmsuspend rhel7 --target mem ^C # virsh save rhel7 /tmp/rhel7.save error: Failed to save domain rhel7 to /tmp/rhel7.save error: Timed out during operation: cannot acquire state change lock
Reproduced the bug on the following packages according to the steps in comment1: # rpm -qa libvirt qemu-kvm-rhev libvirt-1.1.1-16.el7.x86_64 qemu-kvm-rhev-1.5.3-30.el7.x86_64