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.
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
Add disk xml options and functions.

    Add os loader bios options in xml.
    Add interface driver option in xml.
    Add more disk options(wwn, serial, vendor, product, blockio, geometry) in xml.
Merge pull request #1673 from rbian/disk-options

Add more disk options in xml. Modify function to get disk option in xml.
get_image_info: Adjustments for tp-libvirt

Don't use the 'normalize_data_size()' method for the returned 'vsize'.
Use the 'bytes' value within the parentheses since it's the real value
that qemu-img finds/determines from the meta data.

Additionally rather than having two modules do the exact same thing,
have the utils_test/__init__.py call the utils_misc/get_image_info()

Signed-off-by: John Ferlan <jferlan@redhat.com>
Merge pull request #1661 from jferlan/get_image_info

get_image_info: Use 'bytes' value from qemu-img instead of normalize_data_size value
Merge pull request #1667 from rbian/virtual-disks

Virtual disks cases.
Merge pull request #1678 from chuanchang/blkiotune

Add helper functions for testing virsh blkiotune command
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>