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

Signed-off-by: Xu Tian <xutian@redhat.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.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.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>
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>
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>
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>
libvirt_xml.controller: Add controller relative operations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>