libvirt: Add 2 new test cases for virsh change-media

1.When a guest is shutoff, user can insert/update a source file
  without source path, but the guest cannot be started
2.When a guest is started, user cannot insert/update a source file
  without source path.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt-virsh: Remove SESSION_COUNTER from VirshPersistent.

As we use COUNTERS to manager VirshSession in VirshPersistent.
SESSION_COUNTER is no needed any more.
* remove SESSION_COUNTER from VirshPersistent.
* update virsh_unittest related with SESSION_COUNTER.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
virt-libvirt: Unify virsh function 'name' parameters

* Renamed vm_name -> name
* Updated docstrings
* Clarified several other parameters.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
to support vol-dumpxml
to add config file for virsh volume testcase
to add testcase for virsh volume
after resolving rebase conflicts
virsh_volume.py: review comments fix
V2: Review comments fix
Merge pull request #738 from liyangfnst/change_media_new_test

libvirt: Add 2 new test cases for virsh change-media
virttest.cartesian_config: Supress invalid pylint option on python 2.4

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Supress remaining pylint errors on python 2.4

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.cartesian_config: Remove unnecessary pylint error supression

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.libvirt_xml.accessors: Fix pylint supression

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.virttest.qemu_vm: Update the way used to create vhostfd

Follow the way used to add tapfds when creating vhostfd.
This can help us try to reuse vhostfd instead of getting a new
vhostfd every time.
Release vhostfd.
Support multi queue

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge pull request #751 from yangdongsheng/virsh_SESSION_COUNTER

libvirt-virsh: Remove SESSION_COUNTER from VirshPersistent.
virttest.qemu_qtree: Improve the drive_format check

Instead of checking disk device (ide-hd), check the superior bus
(ich9-ahci) to verify autotest drive_format.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_qtree: Compatibility with new virtio-scsi name

virtio-scsi-pci device was renamed to virtio-scsi-device in
qemu-1.5.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_qtree: Fix QMP compatibility

QMP returns "info qtree" with trailing '\r', which causes qtree_parser
to accept id = ". Strip those characters to avoid this problem.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_monitor: Eclipse autoformat

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>