tests.isic: Remove whitespace to fix configure problem

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
virt.kvm_vm: Inform spice client of impending migration

A spice client can be informed of a migration, so it
connects to the new vm automatically, keeping the
client connection alive during any number of migrations,
through a monitor command.

This patch implements calling the appropriate command
(there are 3 different valid commands for RHEL userspace,
older upstream and current upstream qemu), for both
human monitor and qmp. This way it'll be possible to
create a test for spice seamless migration test (issue #158).

Spice team, please take a look at this and provide feedback.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: virtio-blk-pci and RHEL 5

Checking if qemu-kvm has the '-device' command line option seems to
safe and accurate enough to generate correct syntaxes on both RHEL 5
and latest upstream.

This is better documented on github issue #504.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
virt: fix documentation about caching types and add other options

The current version of the inline documentation about caching
swapped names and definitions of writethrough and writeback. Also
add other (somewhat) recent cache options available on latest
qemu.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
virt: Record qemu_command line as an attribute of kvm vm

Make this change to fit some cases need to record or compare the
qemu command.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt: Add commented virtio_port options to base.cfg

This patch adds example of virtio_ports usage. All lines are
commented out so no actual changes.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt.kvm_vm: Add name_prefix for virtio_port chardevs

This patch make possible to specify virtio_port chardev name
using prefix + port index. By default the original name
is used.

This feature is requested by SPICE team. Spiceagent requires
virtio_ports names in following format: "com.redhat.spice.*"

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Fix incorrect names from name_prefix for virtio_port chardevs

name_prefix for virtio_port used wrong filenames in actual VM
creation.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Add dummy test for virtio_console

Current virtio_console tests only checks the existence of compiled
version of guest script. When the script changes it won't recognize
it and still use the old one.

In production it shouldn't be run and fresh image should be used instead.
In development we might find this script useful when developing new
version with the same image.

It's disabled by default so shouldn't affect production users.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Modify virtio_console_guest.py guest to support Windows

This patch enables virtio_console_guest.py script to run on Windows.
It's a first very limited version.

VirtioGuest class now contains all functions, which might be used in
virtio_console tests and should be implemented.

The Posix version is the original Linux version with minor bugfixes.

The Nt version is simplified version which currently doesn't support
port reconnection (migration) and implements only "open" and "close"
features.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Modify virtio_console and kvm_virtio_port to suit Windows testing

This patch changes the GuestWorker to run on windows and adjusts
virtio_console test also to support windows testing.

Currently supported tests are:
* open
* multiopen
* close
* max_serials_and_conosles (windows won't initialize consoles. I need
           to check it with the developer if this is a bug or feature)

Beware on my laptop in 50% the ports were not initialized properly,
VM reboot usually helped (not always). You might use "Winobj" program
to list \\Device\vport* ports or \\.\$port_name devices/symlinks.

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