virt-libvirt: VMXML.new_from_dumpxml bugfix

Parameters to VMXML instantiation were wrong.  Added unittest
to flag related problems with this method in future.

Signed-off-by: Chris Evich <cevich@redhat.com>
Fix some other references to vm_type = kvm

Change those to 'qemu'.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu test: Add sr_iov_boot_negative.py test script

This script covers some sr-iov negative boot test case.
Boot sr-iov device with invalid parameter.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu test: Add sr_iov_hotplug_negative.py test script

This script covers some sr-iov hotplug negative test case.
Hotplug sr-iov device with invalid parameters.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu: Add sr-iov negative test cases

It covers the following sr-iov negative test cases:

[KVM_AUTOTEST][SR-IOV] RFE: Hotplug VF/PF with invalid addr value
[KVM_AUTOTEST][SR-IOV] Generate -1 VF from one PF
[KVM_AUTOTEST][SR-IOV] Hot add a VF with iommu turned off
[KVM_AUTOTEST][SR-IOV] Remove SR-IOV driver while VF is in use by guest
[KVM_AUTOTEST][SR-IOV] Assign a PCI device to qemu guest in -no-kvm mode
[KVM_AUTOTEST][SR-IOV] Assign multiple VFs to multiple guests
[KVM_AUTOTEST][SR-IOV] RFE: Generate more than Max VFs from one PF

Signed-off-by: Feng Yang <fyang@redhat.com>
guest-hw.cfg: Update driver_option for more_than_max_vfs and negative_max_vfs cases

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu: add chardev_hotplug test

Hotplug a number of chardev devices to qemu and
verify whether they have the expected functionality.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
virt: Multi-host repair compatibility with new virt cfg structure.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds test for vhost and adds minor repair for file transfer tests.

vhost test: tests for migration with different vhost param setup.
repair: multi-host file transfer test. The test correctly delete all files
        which are used for testing and adds parameter for "del_file_with_err"
        control deleting of files used for testing.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: cartesian_config catch another cfg error.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
standalone test: Print 'almost' full guest OS name

So that we don't fall into the traps of 'shortnames',
that is, parts of the names that are not printed. For
example:

Win7.64

is in fact Win7.64.sp0, so if one puts only Win7.64 in
the command line, we'll execute both Win7.64.sp0 and
Win7.64.sp1. Printing a part of the full name avoids
that.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: Strip names in all occasions

I couldn't figure out how to automagically strip
test names in all occasions, but now we have a way:
find where is the guest name, and strip all the full
name until the guest name.

This technique is simple, effective and performing
(current guest name dict size is about 96 elements
in size), so let's go with it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
standalone_test: Turn guest name list and tag index into globals

So we only have to evaluate those once, reducing the time
to evaluate values by caching.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>