qemu.tests.qmp_command: Update the way to get qemu_binary.

After some updating, current code could not get correct qemu binary.
So Case error with message "TestNAError: Host qemu does not support qmp".

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.pci_hotplug: Make device_add_nic and device_add_block have same parameters

Add a useless parameter in device_add_block().

These two function called by following code:
        try:
            # get function for adding device.
            add_fuction = local_functions["%s_%s" % (cmd_type, pci_type)]
        except Exception:
            raise error.TestError("No function for adding '%s' dev with '%s'" %
                                  (pci_type, cmd_type))
        after_add = None
        if add_fuction:
            # Do add pci device.
            after_add = add_fuction(pci_num, queues)

So they must have same parameters.
Now we meet error:
TypeError: device_add_block() takes exactly 1 argument (2 given)

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: correct test step

for this test we need to compare images when vm is in paused status;

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1065 from FengYang/update5

Fix for next branch - Update5
Merge pull request #1066 from xutian/drive_mirroring_fix

qemu.tests: correct test step
virt: variable-rename fix for pylint

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Remove custom string conversion

Since PropcanBase is now fully pickle-able, there is no need
for custom string-conversion (which was used for pickling in virtnet).
Removed these special methods to just let normal python dict string
conversion take over.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: libvirt_xml interface xml driver

Added ability to get/set/del '<model type=>' element + attribute.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Overhaul/expand VirtNet to be more flexible

* List things that were done here

Signed-off-by: Chris Evich <cevich@redhat.com>
fixup! virt: variable-rename fix for pylint

Signed-off-by: Chris Evich <cevich@redhat.com>
fixup! virt: Overhaul/expand VirtNet to be more flexible

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Override has_keys in LibvirtXMLBase

Propcan was getting in the way of catching underlying
exceptions at higher levels.  By overwriting this method
it's functionality can work as expected for subclasses.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Fix interface XML driver

It was duplicating functionality of 'type' property whereas base-class
already provides 'type_name' which also avoids using a python built-in.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Fix VMXML bug

Devices were not properly having the virsh instance
passed on to them.

Signed-off-by: Chris Evich <cevich@redhat.com>