virttest.test_setup: Add some hugepage related config params

Alexander reported some problems running virt test on some
low memory PPC systems w.r.t. hugepages setup. In order to
make it easier to run virt-test without local code changes,
turn the QEMU memory overhead and whether to dealocate
huge pages something configurable.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
shared.cfg: Disable S3/S4 test on all ppc64 guests

According to https://github.com/autotest/virt-test/pull/558
All S3/S4 tests should be disabled on ppc64 guests.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virt: github report set cache expiry by class

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report add issue description key

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report cache repo labels

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report support modifying issues

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report label unlabled issues

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report pylint cleanup/fixes

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report on least updated pull requests

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github issues report fixes

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report tool to fill cache

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github report add repo name prompt

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: github reports cache self-cleaning when possible

When an exception is thrown upon reading from cache,
attempt to remove the related entries being operated on.
An exception will still be thrown, however the cache
will not be corrupted with bad entries.

Also, ran into RH BZ 954156 when running cache_populate.py
as it loads commit authors for issue #362:

bsddb.db.DBPageNotFoundError: (-30986, 'DB_PAGE_NOTFOUND: Requested page
not found')

RH BZ: 954156

Signed-off-by: Chris Evich <cevich@redhat.com>
Merge pull request #562 from cevich/pygithub_update

Pygithub update
Merge pull request #534 from lmr/hugepages_ppc

virttest.test_setup: Add some hugepage related config params
Add a class named RemoteFile in virttest-remote module.

A class to handle remote file.
Currently, we support three operations on remote file.
add: append lines in to file.
sub: replace string which match pattern to repl.
remove: delete lines that match pattern.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add some unittest for RemoteFile.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
virttest.qemu_devices: Add qemu_devices and use it for qemu VM

This patch modifies the way how qemu_command is created. Instead
of long string it creates a representation of devices, which behaves
similarily to qemu's qdev.

Current implementation is very limited and only handles PCI bus. All
devices are created as simple StringDevices so the benefit might
not be obvious. But later patches adds specific devices (usb, image,
...) and their specific behaviour.

Additionally this patch adds the basic support for q35 machine.

Later the support for automatic check of running VM and representation
will be added.

NOTE: This version's pci addresses are not assigned properly as
      upstream currently uses different method. Following patch
      removes the original mechanism and uses the one from this patch.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Eclipse autoformat
virttest.qemu_vm: Use devices to handle supported devices/commands

This patch makes VM.make_create_command use devices.has_device()
and devices.has_option().

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