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>
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>
virttest.utils_net: support ip address deleting

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
virttest: Add virsh qemu-attach and qemu-agent-command wrapper

Add 2 qemu commands wrapper and update qemu_monitor_command to support
extra options.

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt_vm: Add '--hmp' option for get_vcpus_pid function

As updated the qemu_monitor_command, the get_vcpus_pid function is
affected as it use hmp command, so add the option '--hmp' for run
the command.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virt: Do store_vm_register only vm_type is qemu

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.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.
Disable virtio_scsi test for Ubuntu 11.04 to 13.04
Disable virtio_scsi test for all ubuntu guest which older than ubuntu 14.04
Merge pull request #1691 from liyangfnst/vm_monitor

virt: Add AttributeError when use vm.monitor
utils_selinux: Add two helper function in utils_selinux.

Add two funtions is_enforcing() and is_permissive().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest/utils_misc: Fix return code of run_tests()

When the detailed test status was introduced, we did
not update the criteria to determine when a test passed
or failed. Let's fix that problem by checking the
base job test status to boolean mapping and then deciding.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>