PciAssignable: Make nic_name_re configurable.

nic_name_re used to filter nic name in host.

Signed-off-by: Feng Yang <fyang@redhat.com>
PciAssignable: Do not modprobe it, if self.driver is not available.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.virt_vm: Simple wait_for_get_address() function

1) It broken our timeout mechanism.
2)The more important is we already have restart_gust_network() in wait_for_login(),
  so no need restart guest network in wait_for_get_address().
3) Could not get mac not always means we need restart guest network.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.virt_vm: Do not call self.wait_for_get_address() in vm.login()

login() function is one time action. So it should not call wait_for_*()
function. Or we will have wait_for_* in wait_for_login().

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.virt_vm: Try to login again after restart network.

So will try to restart guest network when normal login timeout.
Call login again after restart guest network.
This is also what we want when adding restart_network code.
Please refer to (7dfcc5a0f9c3b9ca28f32490e89eda5216591649 in upstream)

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge restart_guest_network() and renew_guest_ip() to restart_guest_network()

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.virt_vm: Try to get guest network status when login timeout in wait_for_login().

Signed-off-by: Feng Yang <fyang@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>
vm_xml: let delete device can also by device tag

In some situations, we don't care the device xml, so after this patch,
we can avoid generate device xml by set 'by_tag=True'.

Signed-off-by: Yanbing Du <ydu@redhat.com>
utils_test.libvirt: Add transport element in create_disk_xml

Signed-off-by: Wayne Sun <gsun@redhat.com>
utils_test.libvirt: Add function to create xml for hostdev device.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_misc: Add VFIO relative functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.libvirt_vm: Add functions to get vm pci devices.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_misc.VFIO: Fix bugs for class and functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.libvirt_xml: Support to set boot order for hostdev.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #1844 from spcui/physical_resources_check

shared.cfg: Small bug fix for physical_resources_check
utils_test.libvirt: Fix parameter undefined error.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #1856 from waynesun09/create_disk_xml

utils_test.libvirt: Add transport element in create_disk_xml
Add libvirt-guests configuration file.
vm_xml: Add memtune XML support and add 'unit' attribute for memory element

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