KVM Test: Add qmp_command test.

This script have coverd following qmp command:
query-hpet, query-kvm, query-mice, query-status
query-name, query-uuid, query-version, query-chardev
query-blockstats, memsave, pmemsave, query-cpus
cpu, query-vnc, query-block, query-commands
query-balloon, balloon, cont, stop
and a negative test with wrong command.

This script will check result by following way:
cmd_result_check = equal, will compare cmd_return_value with qmp command output.
cmd_result_check = contain, will try to find cmd_return_value in qmp command output.
cmd_result_check = m_equal_q, will compare key value in monitor command output and qmp command output.
cmd_result_check = m_in_q, will try to find monitor command output's key value in qmp command output.
cmd_result_check = post_contain, will try to find cmd_return_value in post command output.

This update is base on upstream QMP patchset.

Changes from v1:
Bug fix and update according to ldoktor's comment

Signed-off-by: Feng Yang <fyang@redhat.com>
KVM-test: Add format check for qmp_command test
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.cfg: Add config for qmp_command.py test script.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Make qmp_command suitable for more host

List some case only Host_RHEL.6
Do not run these case in RHEL3, RHEL4 guest.
Reconfig qmp_query-mice test case.
Rename qmp_device_add to qmp_redhat_device_add.
Re-design qmp_command.qmp_query-version test case

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge pull request #446 from FengYang/qmp_command

Add qmp_command test case.
virt: Added GithubIssues tool/module/class and example

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Improve github_issues and examples

* Be less pedantic about re-formatting already cached data
* Added 'url' key to standardized issue format
* Added two useful sample report scripts

Signed-off-by: Chris Evich <cevich@redhat.com>
virttest.build_helper: Add remote origin and submodule init

Add the proper origin, and fetch submodules for git repos,
that'll make it possible to build QEMU with spice support
from source.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu/cfg/build.cfg: Remove qemu-kvm and add spice-common repos

QEMU-KVM is no more, and spice was split in spice common and
protocol, so let's update the build.cfg file with that
information.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
lib namespace: Remove unnecessary init files

Those files were added there mainly to mirror qemu,
since that is used as a module, since for that
case we do use things like

from qemu.tests import block_copy

That's not needed for libvirt, and we'd like to
dump it from qemu as well, although it needs
more care.

This solves a problem where it's not possible
to import the python library bindings on virt-test,
since the libvirt module present in virt-test would
take precedence over the library installed system
wide.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.env_process : add pci msi on/off support in autotest

Using this patch you can enable or disable pci msi by modify the
guest disk directly before test start.
if you want to disable (pci=nomsi) pci msi before test, just set:
    pci_msi_sensitive = yes
    disable_pci_msi = yes
in tests.cfg.

Install python-libguestfs before using this patch.

chang_log:
    V2 from V1:
        using python guestfs lib.
    V3 from v2:
        remove the env setting, make case more independent
        modify the default configure