virt: Make vm_type and connect_uri as defaults

There is a desire to keep these parameters out of the shared
base.cfg.sample file. However, they should be set prior to definition of
variants to allow them to be modified for testing.

Signed-off-by: Chris Evich <cevich@redhat.com>
cli/job: add --kernel-config option

Add a new command-line option to allow users to specify a kernel config_file
as previously the only way to do so would require them to specify a control
file with the kernel_list specified.  Intent is to make it easier to specify
both a kernel version and config_file for basic tests.

The new option accepts a comma separated list that is expected to match the
number of entries specifed in the --kernel option.

Signed-off-by: Daniel DeFolo <daniel.defolo@hp.com>
frontend/afe: fill-in kernel and cmdline on clone

I spent some time in issue #351 talking with Lucas about this. There
isn't a particularly clean way to deal with the data right now, because
the kernel information is only stored in the control file. Moving it
requires database changes, etc, but there is a "quick'n'dirty" way of
obtaining the data, as implemented below.

Have the server parse out the control file's kernel_list line and munge
in a "kernel" and "cmdline" entry into the job information.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
virt: Removes whitespace from libvirt_vm.py

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Add memory stress test to cpu_flags test

usage:
  ./cpuflags-test --stressmem 100 (in MB)

Signed-off-by: Jiří Župka <jzupka@redhat.com>
shared: Adds class for simple statistics and convert size function

convert_data_size('1M') == 1024 * 1024 bytes

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt.kvm: Unifying qmp/human monitor set_migration_speed

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt.kvm_vm: Adds possibility to don't wait for finish of migration

After setting not_wait_for_migration the kvm_vm.migration method
returns control to parent function immediately after sending
of migration command to qemu monitor.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds funtion to virt_utils install_cpuflags_util_on_vm

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds support for new QMP status command output.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
kvm-test: Repairs multihost control file

Repairs an error with processing test fail exception.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
kvm-tests: Adds tests for measure migration speed.

tests:
  1) Single host measure migration speed.
  2) Multi host measure migration speed.

description:
  1) start mem stresser in VM to avoid end of migraiton
  2) get statistic of migraiton speed
  3) kill VMs
  4) if migration speed is slower than desired migration speed it raise warning

Signed-off-by: Jiří Župka <jzupka@redhat.com>
netperf: add the default port to netserver

We launch netserver in remote system by ssh,
command will hang with RHEL5 guest, adding
the port parameter can resolve this issue.

Reported-by: Wenli Quan <wquan@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
virt: convert averages to float before compare

Currently the averages are string type. Sometimes,
the compare result will be wrong.

eg:
>>> 85.2 > 100
False
>>> "85.2" > "100"
True

Reported-by: Wenli Quan <wquan@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
netperf: enable burst ability in TCP_RR tests

We have many sessions in TCP_RR tests, burst ability is requested.
--enable-burst include intial request burst ability in _RR
               tests, may affect result

Signed-off-by: Amos Kong <akong@redhat.com>
virt: do not compute Total Significance if samples don't have enough items

If samples only have one items, t-test will return 'nan'.

Signed-off-by: Amos Kong <akong@redhat.com>
rename virtio_console.performance to virtio_console.perf

'performance' will be used for a new subtest.

Signed-off-by: Amos Kong <akong@redhat.com>
virt: Add Fedora 17 to the list of guests

Also, make it the default guest for KVM autotest.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
KVM-Test: kvm_monitor.py: Add function sendkey() for QMP monitor

QMP monitor doesn't support sendkey command, this function will
call sendkey in human command. With this function, we can send
key event via QMP monitor directly.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
KVM-test: Add 'timeout' parameter for function human_monitor_cmd

Add 'timeout' parameter when need specify the cmd_timeout
using human_monitor_cmd().

Changes from v2:
 - Use CMD_TIMEOUT instead of hardcoded timeout value.

change from v1:
1. fix -- lack 'timeout' in return value of human_monitor_cmd()

Signed-off-by: Golita Yue <gyue@redhat.com>
Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
Acked-by: Xiaoqing Wei <xwei@redhat.com>