virttest.libvirt_vm: Add functions to get device details.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test: Add functions for remote disk operations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test: Support lvm for RemoteDiskManager.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Add attaching operations for libvirt vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.init: Add function for RemoteDiskManager.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
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>
Add functions to get disk slots and disk type in xml.
virttest.virsh: add blkiotune command wrapper

Signed-off-by: Alex Jia <ajia@redhat.com>
virttest.utils_misc: add functions for getting major and minor numbers of the device

Signed-off-by: Alex Jia <ajia@redhat.com>
virttest.libvirt_xml.vm_xml: parse block I/O elements from XML

Signed-off-by: Alex Jia <ajia@redhat.com>
virt: Fix a bug in RemoteFile init

If remote file doesn't exist, SCPTransferFailedError
will be catched, and then creat a new empty file om
local host.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Modify get_disk_slots function to get_virtio_disk_slots.
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>
Merge pull request #1610 from yumingfei/disk_operations

Add some functions for disk operations
virt: add truncate() func into RemoteFile class

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #1693 from liyangfnst/remote_file

virt: Fix 2 bugs in RemoteFile class
env_process: Add filter for svirt_install in checking of vm.exists().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #1673 from rbian/disk-options

Add more disk options in xml. Modify function to get disk option in xml.