qemu: Add qmp_event_notification test

This case test QEMU Monitor Protocol Events.
It verifies if the appropriate qmp event
will be emitted when the required conditions
are met.

It tests the following events now:
RESET SHUTDOWN STOP RESUME WATCHDOG.

All tests follow the qmp commands:
system_reset, quit, system_powerdown.

Signed-off-by: Feng Yang <fyang@redhat.com>
config: Update qmp_event_notification config for rhel4 guest

RHEL4 guests need some special config to make this test work.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.storage: Pylint/Eclipse style fixes

No actual changes, just cleanups.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.storage: Change default location

Use root_dir/$backup_dir in case $backup_dir is not absolute path
and change the default backup location to $autotest_data/images/.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.storage: Don't overwrite backup image during preprocess

Allow backup_image to skip_existing files and use this during
preprocess_image. This could save a lot of time with intrusive tests.

The idea is to create backup image only once and in case of
intrusive tests use restore_image_after_testing_on_error.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu: Add new test case kexec

Design this case according to manual case

[x2APIC] switch kernel with kexec

This case check that x2apic is still enabled after kexec.

Signed-off-by: Feng Yang <fyang@redhat.com>
tests.cfg: Add a config block for simple ping test

The ping test contains 2 subtest now, this patch adds one
more subtest for a simple single-nic-card ping test.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
fix chardev_hotplug test

Adapt to final version which was committed to qemu upstream.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
virttest.qemu_vm: Change snapshot and boot default to None

Ignore boot and snapshot if not set. This affects only cdrom and
floppy, which doesn't set those variables explicitly.

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