utils_test.libvirt: Make sure XML file has been created for create_disk_xml.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Support multiple disks and scsi disks for attach_disks.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Support to attach devices with --config.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Support format for creating disks.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Update logic of generating disks index.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_test: Ignore shell session terminated error when run autotest inside guest

Some stress test inside guest will cause shell session terminated, we
want ignore this kind of problem in some situation. Add a parameter to
support this.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
shared.cfg: Small bug fix for physical_resources_check

Need to clean up cpu_threads_chk_cmd parameter in
Windows.cfg, not just comment it out.

Signed-off-by: Shuping Cui <scui@redhat.com>
libvirt_xml.controller: Add controller relative operations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Support multifunction of controllers for massive disks.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.staging.utils_memory: Add functions to get/set hugepage parameters

These functions can be used to obtain the parameters of hugepage, such as
total/free/reserved memory,and enable/disable the transparent hugepage feature.
virttest.utils_misc.py : Add hugetlbfs for is_mounted()

It shouldn't be treated by os.path.realpath() while the file-type is hugetlbfs.
libvirt_xml: Implement memballoon xml

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #1771 from ypu/ignore_network_break

virttest.utils_test: Ignore network break when run autotest inside guest
libvirt_xml: Add memoryBacking tag for using hugepage in vm_xml.

The tag tells the hypervisor that the guest using hugepages,
instead of the normal native page size.
Merge pull request #1811 from yumingfei/scsi_enhancements

utils_test.libvirt: Scsi enhancements
Merge pull request #1847 from PandaWei/master

Patching virttest to facilitate the test of hugepage feature
virttest.iscsi: Only search luns under created target id

While decide lun id under new created target, other luns under
other targets need not be counted in, so only find the luns
under new created target string.

This update will help maintain the lun id as 1 under new created
target, which will avoid mismatch lun id when multiple luns
alreay exist on server.

Signed-off-by: Wayne Sun <gsun@redhat.com>
utils_test.libvirt: Add transport element in create_disk_xml

Signed-off-by: Wayne Sun <gsun@redhat.com>
Merge pull request #1855 from waynesun09/iscsi_lun_id

virttest.iscsi: Only search luns under created target id
Merge pull request #1851 from will-Do/memballoon

libvirt_xml: Implement memballoon xml