utils_test.HostStress: Set default value for params.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test: Pass correct args to control file.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.run_autotest: Support to pass args for control.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest: Restore the working dir in download_test_provider

After check the repo informations we should restore the working
dir to original one. Otherwise it will cause problems after we
call it in our scripts.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
env_process: Add filter for svirt_install in checking of vm.exists().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt: Fix a bug in set_kernel_console

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Revert "virsh: Init virsh_exec with default value if it is None."

This reverts commit 7743f0ab899f6c015d35699dd1be161500fff3e1.
virttest.virsh: Update option name and description for create

Signed-off-by: Wayne Sun <gsun@redhat.com>
utils_test.libvirt: Support block device for create_disk_xml.

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

virttest.virsh: Update option name and description for create
Merge pull request #1703 from yangdongsheng/svirt_install

env_process: Add filter for svirt_install in checking of vm.exists().
env_process: Fix a wrong logic in checking of vm.exists().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #1704 from liyangfnst/console_fix

virt: Fix a bug in set_kernel_console
Merge pull request #1708 from yangdongsheng/env_process

env_process: Fix a wrong logic in checking of vm.exists().
Merge pull request #1707 from yumingfei/attach_block_device

utils_test.libvirt: Support block device for create_disk_xml.
libvirt_vm: Resume vm in destroy() when vm is paused.

There are some cases need to suspend vm, and in postprocess,
we need to kill vm by vm.destroy(). But when vm is paused,
vm.destroy() will wait 240s to login it. Then find it is not
loginable and kill it with virsh.destroy().

We waste 240s at this case, we should check the state of vm
before we login it.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt: Add clone_volume func to PoolVolume class

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add create func to VolXML class

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add functions to get/set cpu status

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
utils_libvirtd: Don't need to wait if start failed

If libvirtd service start or restart failed, just checking the exit code
will be enough, we don't need to wait 60 seconds to check whether a
virsh command can be executed.

Signed-off-by: Hao Liu <hliu@redhat.com>