utils_test.libvirt: Move migration functions from test module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #1552 from yumingfei/migration_fix

utils_test.libvirt: Move migration functions from test module.