]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Force guest suspend at timeout
authorWen Congyang <wency@cn.fujitsu.com>
Tue, 25 Jan 2011 10:14:45 +0000 (18:14 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 27 Jan 2011 22:30:42 +0000 (15:30 -0700)
commitf15cad2916f0ac80a2f3659c3ba8294857283ed1
treee050339b651b5644b6215042a61e1f48e0139af5
parentd183e9d1e8d34a2cc89fbba305117665c0737dd4
Force guest suspend at timeout

If the memory of guest OS is changed constantly, the live migration
can not be ended ever for ever.

We can use the command 'virsh migrate-setmaxdowntime' to control the
live migration. But the value of maxdowntime is diffcult to calculate
because it depends on the transfer speed of network and constantly
changing memroy size. We need a easy way to control the live migration.

This patch adds the support of forcing guest to suspend at timeout.
With this patch, when we migrate the guest OS, we can specify a
timeout. If the live migration timeouts, auto-suspend the guest OS,
where the migration will complete offline.
tools/virsh.c
tools/virsh.pod