kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [KVM-autotest] virtio_console test
@ 2010-08-20 13:40 Lukas Doktor
  2010-08-20 13:40 ` [PATCH] NEW " Lukas Doktor
  2010-08-20 14:12 ` [KVM-autotest] " Lukáš Doktor
  0 siblings, 2 replies; 6+ messages in thread
From: Lukas Doktor @ 2010-08-20 13:40 UTC (permalink / raw)
  To: ldoktor, jzupka, autotest, kvm, akong


Hi,

This patch adds new test for virtio_console. It supports booth, serialport and console, virtio_console types and it contains three tests:
1) smoke
2) loopback
3) perf


Before any tests are executed it starts the machine with required number of virtio_consoles. Than it allows user to run all three tests. Using the parameters user can control which tests are executed and what setting is used. All tests supports multiple run using ';' separated list of settings. Most of the settings are optional only. The mandatory ones are written in CAPITALS.

ad1) virtio_console_smoke format:
$VIRTIO_CONSOLE_TYPE:$custom_data

It creates a loopback via $VIRTIO_CONSOLE_TYPE console and sends $custom_data. If the received data match the original test pass

ad2) virtio_console_loopback format:
$SOURCE_CONSOLE_TYPE@$buffer_length:$DESTINATION_CONSOLE1_TYPE@$buffer_length:...:$DESTINATION_CONSOLEx_TYPE@$buffer_length:$loopback_buffer_length

Creates loopback between the $SOURCE_CONSOLE_TYPE console and all following $DESTINATION_CONSOLEn_TYPE consoles. Than it sends data by $buffer_length to the source port. The loopback resends the data by $loopback_buffer_length to all destination consoles. The test listens on the destination consoles and controls the received data.

NOTE: in the debug mode you can see the send/received data's buffers in every second during the test.

ad3) virtio_console_perf format:
$VIRTIO_CONSOLE_TYPE@$buffer_size:$test_duration

First it sends the prepared data in a loop over $VIRTIO_CONSOLE_TYPE console from host to guest. Guest only reads all the data and throw them away. This part runs $test_duration seconds.
Second it does the same from guest to host.

For booth runs it provides information of minimum/median/maximum throughput and guest/host average loads.


Best regards,
Lukas Doktor

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-23 13:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 13:40 [KVM-autotest] virtio_console test Lukas Doktor
2010-08-20 13:40 ` [PATCH] NEW " Lukas Doktor
2010-08-20 14:12 ` [KVM-autotest] " Lukáš Doktor
2010-08-23  7:53   ` Amit Shah
2010-08-23 13:20     ` Lukáš Doktor
2010-08-23 13:42       ` Amit Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).