qemu.tests.multi_nic_stress: Correct remote netperf folder in guest.

Signed-off-by: Feng Yang <fyang@redhat.com>
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>
virsh.migrate: always recover the vm from xml backup

We are updating the vm configuration to have a shared disk we need
to always recover the vm form xml backup to ensure there are no
modification done by this test.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virt: change test entry point method name

There's no need to have the name of the "run_<name>" method (main
test entry point) depend on the test name. So, for simplicity sake,
let's just name the test entry point "run".

I have decided to not fallback gracefully to the previous naming
convention as I believe this can lead to confusion in the future.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
virt: change missing references to run method name

Signed-off-by: Cleber Rosa <crosa@redhat.com>
virt: introduce get_test_entrypoint_func

This utility function warns about legacy and new style entry point
function names and returns the most suitable function.

It also keeps the logic (now a bit more elaborated) on determining
the most suitable function in a central place.

Some time from now, the so called legacy naming standard will be
deprecated for good and only the "run()" function name will be
allowed as a test entry point.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
qemu_vm: make the termination judgment of nic hotunplug more accurate

Currently, when hotunplug a nic, if the nic's nic_name is same as
another nic's netdev_id, hotunplug will failed.
This patch modify the judgment, make it more accurate.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: make nic_hotplug support hot plug/unplug multi nics

This patch make nic_hotplug test support hot plug/unplug multi
nics with different nic_model.

This patch also make nic_hotplug support random unplug a nic that
have been pluged.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: Add multi nics hotplug/hotunplug test

This patch add multi nics hotplug/hotunplug test

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
unattended_install.cfg: limit disk num to 6 in multi_disk_install when using ahci

An ahci controller can have up to 6 downstream devices,
so need to limit disk num to 6.

history:
  V2:
    add image1 in the images value
  V1:
    assign 6 stg name as the images value

Signed-off-by: Xiangmin Han <xhan@redhat.com>
Merge pull request #1243 from ldoktor/add_device2

virttest.qemu_devices: Support for drive drv_extra_params
Merge pull request #1196 from clebergnu/subtest_run_method_name

virt: change test entry point method name
virsh_change_media: Add SKIP option for Enforcing selinux

If the selinux "Enforcing" mode is set, libvirt won't be able to update
the floppy device, so rather than FAIL on a known limitation, set a flag
to just indicate SKIP (along with the reason).

From code review - change /dev/crdom references to /dev/sr0
qemu.tests.stress_kernel_compile: Fix typo

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tests.guest_test: Fix reference to test entry point

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1230 from FengYang/multi_nic_stress

qemu.tests.multi_nic_stress: Correct remote netperf folder in guest.