]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: lifecycle: make agent-mode shutdown and reboot timeout
authorzhang bo <oscar.zhangbo@huawei.com>
Wed, 1 Apr 2015 09:13:08 +0000 (17:13 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 2 Apr 2015 09:08:48 +0000 (11:08 +0200)
commitdd725c53e905db51f39dbaa4a0673e8d1588301b
tree8556a70c9f4aaab8778341be6d6fa92eaf2653ce
parentd64cd4a4c67b376142b9162dc786c3fb35a03740
qemu: lifecycle: make agent-mode shutdown and reboot timeout

When we shutdown/reboot a guest using agent-mode, if the guest itself blocks infinitely,
libvirt would block in qemuAgentShutdown() forever.
Thus, we set a timeout for shutdown/reboot, from our experience, 60 seconds would be fine.

Signed-off-by: Zhang Bo <oscar.zhangbo@huawei.com>
Signed-off-by: Wang Yufei <james.wangyufei@huawei.com>
include/libvirt/libvirt-qemu.h
src/qemu/qemu_agent.c