virsh-domif-setlink-getlink: add backup and restore of vm xml config

We need to backup and restore the guest xml config because we are
modifying the guest. If we don't do this, every other test will fail
because we break the network and the guest is not reachable by
ssh client.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
quick fix to Fedora - remove a no in compose pkg from ks

as migrate.after_extensive_io.iscsi needs scsi-target-utils
and actually Fedora didn't include it in the compose,
so the previous adding of it is a mistake, now remove it.
also gray out the case for Fedora.

CC: Jiri Zupka <jzupka@redhat.com>
Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Merge pull request #1032 from xiaoqing-wei/fedora_ks_fix

quick fix to Fedora - remove a no in compose pkg from ks
qemu.tests.cfg.qemu_img: minor update for configure.

Correct image_cluster_size to cluster_size under convert test.
RHEL.5 host do not support qed

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.qemu_vm: Check available before send cmdline to monitor in spice migration code

Also add default for cmdline

Without this patch, code may fail on rhel5 host.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.qemu_vm: Indent fix in spice related code

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.pci_devices: Add test of pci devices

This test boots VM with a define set of PCI devices and compares
the qtree and internal representation.

In the future this test should also check the operation system view
of the devices (lspci or the windows equivalent)

The testing setup is done via graphical representation of the setup.
Note that the number of spaces is irelevant. The location is defined
by the number of '->' characters. You can verify the setup in the test.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices_unittest.py: Update unittest to suit the changes

There were lot's of changes so please accept this single unittest
update instead of incremental one.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix missing IDE bus for CDROM

Default CDROM is ide. Change this to AHCI in case VM doesn't have
IDE bus.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest: Add nfs set up and clean up code in env_process

Add some nfs setup and cleanup related code in env_process.py to
let user can easily run cases with nfs by update cfg files. Also
update the nfs useage comments in base.cfg

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt: Fix utils_test.*mount perm=None.

If perm is None:
   mount command -o None.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #1035 from jzupka/fix_utils

virt: Fix utils_test.*mount perm=None.
Merge pull request #976 from ldoktor/add_device3

qemu.tests.pci_devices: New test plus qemu_devices updates
Minor fix to unattended_install.cdrom.floppy_ks for legacy SLES

1) change dest_fname to "autoinst.xml", as most cfg used.
2) change autoyast_param from floppy to 'autoyast=device://fd0/autoinst.xml'
    for old SLES OS compatibility.
3) add kernel_params for all existing SLES

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Merge pull request #918 from Antique/virsh-domif-setlink-getlink

virsh-domif-setlink-getlink: add backup and restore of vm xml config
virttest.utils_test: Remove duplicate parameter in start_suspend

We use supend_cmd and suspend_start_cmd together for same command.
So just remove supend_cmd parameter.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Update sr_iov_hotplug to support sub test after hotpulg

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.cfg: Add more sr_iov test cases

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.test_setup: Add more logs during vf/pf setting up.

Log dmesg after loading sr-iov driver.
Log vf number in host.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.sr_iov_hotplug: Make sure new hotpulged nic works.

First check that new hotpulged nic could get ip.
Then try to access network with it.
Disable the primary link(s) of guest before hotpulg.

Signed-off-by: Feng Yang <fyang@redhat.com>