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: 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.
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>
utils_misc: Change the selinux_enforcing as a deprecated function.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest: treewide, replace calling of selinux_enforcing with is_enforcing.

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

Without this patch, we will get a virsh cmd like "None -c uri start vm".

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xm: Add pm tag in vmxml.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml: Support suspend mode in guest XML

This function can help to enable suspend mode in guest XML, which is
needed by domain pm suspend operation.

Signed-off-by: Yanbing Du <ydu@redhat.com>

Use the pm in VMBase.__slots__ to implement the set_pm_suspend().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>