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.qemu_vm: add virtio-rng-device support

Signed-off-by: Xu Tian <xutian@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>
virttest: Add support for set up private openvswitch bridge in test machine

Add a class in test_setup.py to support set up private openvswitch bridge
in the host for our tests. Also fixed a problem that in clean up the
private bridge will not init with params, lead to the private bridge name will
always be the default value.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.test_setup: add setup egp.pl on localhost support

Signed-off-by: Xu Tian <xutian@redhat.com>
shared.deps: add egd server source code

Signed-off-by: Xu Tian <xutian@redhat.com>
shared.cfg: add cfg to no virtio-rng device by default

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest.qemu_vm: Add strict parameter for boot option

Sometimes we need do strict boot via strict=on to skip to boot from
un-selected devices.

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 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>
virttest: add new function to utils_misc

get guest disk free space and memory free size

Signed-off-by: Xu Tian <xutian@redhat.com>