qemu.tests.pci_devices: Get firmware time to initialize

Before "info qtree" returns the correct values, firmware initialization
has to finish. 10s should be enough (in case we won't define 1000
devices)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.pci_devices: Add virtio_disk testing devices

This patch adds the possibility to use virtio_disks for testing.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.pci_devices: Add support for uhci test device

Make it possible to use ich9-usb-uhci controller for pci_devices testing

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix the bug with overwritten bus for virtio disk

The bus property of virtio disks is set by pci_bus and is set during
device insertion via parent_bus.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.pci_devices: Major config update

Original setups were only for developing the test and some of them
were invalid (impossible for real hw and thus unsupported by kernel).
These setups were checked with pci device developer and they should be
working properly.
qemu.tests.multi_nic_stress: Correct remote netperf folder in guest.

Signed-off-by: Feng Yang <fyang@redhat.com>
virsh_migrate_multi_vms: SKIP if srcuri and desturi not defined

Issue #1014, SKIP this test if we haven't adjusted the cfg to have
real source and destination URI's
virsh_migrate: remove static mac address for "xml" test

We are using static mac address "ff:ff:ff:ff:ff:ff" which is broadcast
address, but libvirt neads unicast address. Instead of using static mac
address we can leave libvirt to generate one and then obtain that mac
address for further checking in the code.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_migrate: skip direct migration for driver different from xen

Direct migration is supported only for xen in libvirt and therefore
we should skip this test for all other drivers instead of failing.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh.migrate: fix the connect uri

The src uri for migration tests should be gotten from the cfg file
instead from the vm object.

Also change the "connect_uri" into the "virsh_migrate_connect_uri"
and instead of "logging.warning()" that the src_uri or dest_uri aren't
updated use "error.TestNAError()" which will skip the test.
virsh.migrate: Update the "there_migrateuri" test case

By this update we can tell the user that he needs to setup the
migrateuri.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh.migrate: change the current storage into the shared storage

The migration requires shared storage. By this patch we will detach
all existing storages from the existing guest and we will attach
one shared storage defined in the config file. It can be on
whatever backend you want.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
qemu.test: Not create test file when it is not necessary

Not create test file when it is not necessary

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #1238 from jferlan/virsh_migrate_multi_vms

virsh_migrate_multi_vms: SKIP if srcuri and desturi not defined
Merge pull request #1263 from spcui/usb_storage_fix

qemu.tests.cfg: add remove_image_stg for usb_storage
qemu_vm, aexpect, utils_misc: attempt to catch qemu in defunct state.

Add support to detect if qemu becomes <defunct> (zombie)
after it was started. If qemu is detected defunct, it will
raise virt_vm.VMStartError().

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Fix backport bug -> Rename json to simplejson

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Fix undefined variable bug introduced in 10c60b61

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1267 from autotest/fix-backport-bug

Fix backport bug
Merge pull request #1255 from ruda/qemu-defunct

qemu_vm, aexpect, utils_misc: attempt to catch qemu in defunct state.