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>