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>
qemu.tests.usb: Disable xhci on old RHEL guests

These RHEL guests older than RHEL5 aren't shipped
with xhci driver. Disable xhci testing on them.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.usb: Disable usb_audio on RHEL7 host

The RHEL7 host doesn't have usb_audio support now.
Disable it.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Merge autotest and virttest cgroup_utils library

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.cfg: Update KSM query_regex for check KSM status

Update the query_regex for check KSM status for RHEL 5 host.
The old one is out of date, and can not work any more.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: fix die() not response in ksm_overcommit.ksm_serial

After we kill the previous guest. We still need wait the command line
finish in the last guest. Also need send the die() command in the session
for the last vm.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #589 from ldoktor/framework

Merge autotest and virttest cgroup_utils library
qemu.tests: Add new test timerdevice.tscwrite

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
shared.deps: Add time-warp-test source code

This C code is used for time device testing.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.test: Add test for checking TSC sync for long time

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests: Add test timerdevice.tscsync.change_host_clksource

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests: Add test timerdevice.clock_drift_with_ntp

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_devices: Remove readconfig-like format of qemu representation

After a disucssion I'm removing the support for readconfig-like
format of qemu format.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Support for NO_EQUAL_STRING and EMPTY_STRING

It seems that some test uses those special keywords for negative
testing.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix __getitem__() of QSparseBus

iterate over values instead of keys.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Fix the _dev2addr() function of QSparseBus

QSparseBus uses integers for addressing. We have to get integer
from the device's address.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices_unittest: Add qemu_devices unittest

This is a first part of unittest which is focused on qemu devices.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices_unittest: Add tests related to buses

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Remove tailing ']' in DevContainer.str_long()

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Use is None for checking

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