[PATCH] qemu-kvm: jaso-parser: Output the content of invalid keyword

2010-03-24 Thread Amos Kong
When input some invialid words in QMP port, qemu outputs this error message: parse error: invalid keyword `%s' This patch makes qemu output the content. Signed-off-by: Amos Kong ak...@redhat.com --- json-parser.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/json

Re: [PATCH] VGA Bios allow 1920x1080

2010-04-17 Thread Amos Kong
2010/4/18 Øyvind Sæther oyvi...@everdot.org: The patch lets me run 1920x1080 resolution, some displays are only that and not 1920x1200 these days. Gentoos ebuild doesn't seem to make the vgabios and only uses /pc-bios/vgabios.bin, making kvm/vgabios and replace vgabios.bin with the

Re: Startup of multiple Guests

2010-05-02 Thread Amos Kong
On Sun, May 2, 2010 at 9:14 PM, Dan Johansson k...@dmj.nu wrote: Hi, It's me again. After some time with a lot to do outside the computer world, I am now continuing my KVM-Project. I have gotten all my KVM-Guest to run separately, but when I try to start more then one at the same time I get

Re: KVM on RHEL5.5

2010-05-14 Thread Amos Kong
On Fri, May 14, 2010 at 4:33 PM, Alexander Graf ag...@suse.de wrote: On 14.05.2010, at 10:10, TianJing wrote: Hi all, i am trying to install kvm on RHEL5.5, the server is power leader S5000VSA, the CPU is intel E5335, and i check that it support vm. when i run the commamd:  modprobe

About offload function of Virtio Nic

2010-05-30 Thread Amos Kong
Hello all, Can I ask some question of the offloading function with Virtio-NIC? I'm interested in KVM virtualization. The virtual NIC is different from real hardward. And there is also a big distance between Virtio-NIC and E1000-NIC. The offloading function of Virtio-NIC close related with the

Re: About offload function of Virtio Nic

2010-05-30 Thread Amos Kong
On Mon, May 31, 2010 at 7:44 AM, Amos Kong kongjian...@gmail.com wrote: Hello all, Can I ask some question of the offloading function with Virtio-NIC? I'm interested in KVM virtualization. The virtual NIC is different from real hardward. And there is also a big distance between Virtio-NIC

[PATCH] fix an error of undefine variable

2009-09-22 Thread Amos Kong
, in _autotest_logging_handle_error 09/23 09:50:27 ERROR| traceback:0013| traceback.print_stack() 09/23 09:50:27 ERROR|setup_modu:0087| Future logging formatting exceptions disabled. 09/23 09:50:27 ERROR| kvm:0067| Test failed: global name 'root_module_name' is not defined Signed-off-by: Amos Kong ak

[KVM-AUTOTEST PATCH] fix an error of undefine variable

2009-09-22 Thread Amos Kong
exceptions disabled. 09/23 09:50:27 ERROR| kvm:0067| Test failed: global name 'root_module_name' is not defined Signed-off-by: Amos Kong ak...@redhat.com --- client/setup_modules.py |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/client/setup_modules.py b/client

[PATCH] Test 802.1Q vlan of nic

2009-09-23 Thread Amos Kong
Test 802.1Q vlan of nic, config it by vconfig command. 1) Create two VMs 2) Setup guests in different vlan by vconfig and test communication by ping using hard-coded ip address 3) Setup guests in same vlan and test communication by ping 4) Recover the vlan config Signed-off-by: Amos Kong ak

Got bash 'Resource temporarily unavailable' when testing linux_s3 (kvm)

2009-10-02 Thread Amos Kong
. Regards, -- Amos Kong Quality Engineer Raycom Office(Beijing), Red Hat Inc. Phone: +86-10-62608183 -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[Autotest] [PATCH] Test 802.1Q vlan of nic

2009-10-15 Thread Amos Kong
Test 802.1Q vlan of nic, config it by vconfig command. 1) Create two VMs 2) Setup guests in different vlan by vconfig and test communication by ping using hard-coded ip address 3) Setup guests in same vlan and test communication by ping 4) Recover the vlan config Signed-off-by: Amos

Re: [Autotest] [PATCH] Test 802.1Q vlan of nic

2009-10-21 Thread Amos Kong
On Mon, Oct 19, 2009 at 10:22:21AM +0200, Dor Laor wrote: On 10/15/2009 11:48 AM, Amos Kong wrote: Test 802.1Q vlan of nic, config it by vconfig command. 1) Create two VMs 2) Setup guests in different vlan by vconfig and test communication by ping using hard-coded ip address

Re: [Autotest] [PATCH] Test 802.1Q vlan of nic

2009-10-21 Thread Amos Kong
On Tue, Oct 20, 2009 at 09:19:50AM -0400, Michael Goldish wrote: See comments below. Hi all, Thanks for your reply. - Dor Laor dl...@redhat.com wrote: On 10/15/2009 11:48 AM, Amos Kong wrote: Test 802.1Q vlan of nic, config it by vconfig command. 1) Create two VMs 2

[PATCH 1/2] KVM-test: Add execute permission to qemu-ifup script

2009-10-26 Thread Amos Kong
qemu-ifup is a script for setting network bridge. If no execute permission, always face this problem: autotest/client/tests/kvm/scripts/qemu-ifup: could not launch network script Could not initialize device 'tap Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0

[PATCH 2/2] KSM-test: Test 802.1Q vlan of nic

2009-10-26 Thread Amos Kong
be setup in configure file. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/kvm_tests.cfg.sample | 12 ++ client/tests/kvm/tests/vlan_tag.py| 68 + 2 files changed, 80 insertions(+), 0 deletions(-) create mode 100644 client/tests/kvm/tests

Re: [Autotest] [PATCH] Test 802.1Q vlan of nic

2009-10-26 Thread Amos Kong
On Wed, Oct 21, 2009 at 06:37:56PM +0800, Amos Kong wrote: On Tue, Oct 20, 2009 at 09:19:50AM -0400, Michael Goldish wrote: See comments below. Hi all, Thanks for your reply. . Agree with you. When I test this case, the original get_command_status() always cause special read

[Autotest PATCH] KVM test: No need close session when login timeout

2009-12-24 Thread Amos Kong
If login timeout, wait_for() returned 'None' and assigned to 'session'. When call session.close(), this prlblem was caused: AttributeError: 'NoneType' object has no attribute 'close' Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/tests/timedrift_with_migration.py |3 ++- 1

Re: [Autotest PATCH] KVM test: No need close session when login timeout

2009-12-27 Thread Amos Kong
On Sat, Dec 26, 2009 at 10:07:58AM -0500, Michael Goldish wrote: - Amos Kong ak...@redhat.com wrote: On Fri, Dec 25, 2009 at 08:28:18AM -0500, Michael Goldish wrote: - Amos Kong ak...@redhat.com wrote: If login timeout, wait_for() returned 'None' and assigned

Re: [Autotest] [PATCH 1/3] KVM test: Introduce check_image postprocess directive

2011-01-18 Thread Amos Kong
- Original Message - With check_image_foo = yes, KVM autotest will use qemu-img to perform checks on the qcow2 image. This new functionality intends to replace the script check_image.py. The plan is to supersede most of the pre/post scripts in place throughout KVM autotest. Good

Re: [KVM-AUTOTEST PATCH] KVM test: refactor kvm_config.py

2011-02-09 Thread Amos Kong
On Wed, Feb 09, 2011 at 11:28:56AM +0200, Avi Kivity wrote: On 02/09/2011 03:50 AM, Michael Goldish wrote: This is a reimplementation of the dict generator. It is much faster than the current implementation and uses a very small amount of memory. Running time and memory usage scale

Re: [PATCH] Remove ethtool from rtl8139 variant

2011-02-18 Thread Amos Kong
On Fri, Feb 18, 2011 at 05:14:09PM -0200, Lucas Meneghel Rodrigues wrote: As the original patch set don't define supported_features for it. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com Acked-by: Amos Kong ak...@redhat.com --- client/tests/kvm/tests/ethtool.py |6

[PATCH] KVM-test: Add a new test: privacy test

2011-02-28 Thread Amos Kong
Communicate between two vms, and try to capture packages from another vm in the same lan. This test used tcpdump, so we need limit it with Linux guests. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/tests/privacy.py | 44 client/tests/kvm

[PATCH] KVM-test: Support qxl and vga parameters in make_qemu_command.

2011-03-02 Thread Amos Kong
. Signed-off-by: Feng Yang fy...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/kvm_vm.py | 38 client/tests/kvm/tests_base.cfg.sample |4 +++ 2 files changed, 42 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm

Re: [Autotest] [PATCH 1/7] KVM test: Move test utilities to client/tools

2011-03-10 Thread Amos Kong
On Wed, Mar 09, 2011 at 06:21:04AM -0300, Lucas Meneghel Rodrigues wrote: The programs cd_hash, html_report, scan_results can be used by other users of autotest, so move them to the tools directory inside the client directory. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com ---

kvm tools: about using virtio-console

2011-04-09 Thread Amos Kong
Hi pekka, Does virtio-console work with kvm-tools? It seems that virtio-console.vps[] is not initialized in virtio-console.c (gdb) r run -i linux-0.2.img -k ./vmlinuz-2.6.38-rc6+ -r ./initrd.img-2.6.38-rc6+ -p=init=1 -m 500 -c Starting program: /project/rh/kvm-tools/tools/kvm/kvm run -i

Re: [PATCH] kvm tools: Implement exit kvm tools on Ctrl+a+x

2011-04-10 Thread Amos Kong
On Sun, Apr 10, 2011 at 11:13:54AM +0400, Cyrill Gorcunov wrote: On 04/10/2011 11:09 AM, Pekka Enberg wrote: On Sun, Apr 10, 2011 at 9:50 AM, Asias He asias.he...@gmail.com wrote: This patch makes Ctrl+a escape key. Ctrl+a+x will terminate kvm tools. It works for both serial and virtio

Re: [PATCH] kvm tools: Make virt_queue__available return false if queue is not initialized.

2011-04-10 Thread Amos Kong
, used = 0x0}, pfn = 0, last_avail_idx = 0} Reported-by: Amos Kong ak...@redhat.com Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/include/kvm/virtio.h | 22 -- tools/kvm/virtio.c | 32 +--- 2 files changed, 29

[RFC] [PATCH v2] kvm tools: Make virt_queue__available return false if queue is not initialized.

2011-04-10 Thread Amos Kong
the check of virt_queue out of virt_queue__get_iov() Reported-by: Amos Kong ak...@redhat.com Signed-off-by: Asias He asias.he...@gmail.com Signed-off-by: Amos Kong ak...@redhat.com --- tools/kvm/include/kvm/virtio.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm

kvm tools: rhel6.0 guest hung during shutdown

2011-04-10 Thread Amos Kong
I try to test with a rhel6.0 guest, it hung during the shutdown. guest)# init 0 guest)# could not read byte from child: Success initctl: Event failed Stopping atd: [ OK ] Stopping abrt daemon: [ OK ] Stopping sshd: [ OK ] Shutting down postfix: [ OK ] Stopping crond: [ OK ] Stopping

Re: [PATCH] kvm tools: Use ioport__register() for legacy devices

2011-04-10 Thread Amos Kong
...@kernel.org Looks good for me. Reviewed-by: Amos Kong ak...@redhat.com --- tools/kvm/include/kvm/ioport.h |2 + tools/kvm/ioport.c | 128 tools/kvm/kvm-run.c|3 + 3 files changed, 57 insertions(+), 76 deletions

Re: vnet0

2011-04-10 Thread Amos Kong
On Sun, Apr 10, 2011 at 08:05:30PM +0530, Onkar Mahajan wrote: What is vnet0 ? I see it when i do ifconfig in the host. Is it a TAP device ?? What's the output of '# brctl show' ? -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

[PATCH 1/3] kvm tools: Add a script to setup private bridge

2011-04-13 Thread Amos Kong
\ --dhcp-range 192.168.33.1,192.168.33.254 Signed-off-by: Amos Kong kongjian...@gmail.com --- tools/kvm/util/set_private_br.sh | 51 ++ 1 files changed, 51 insertions(+), 0 deletions(-) create mode 100755 tools/kvm/util/set_private_br.sh diff --git a/tools

[PATCH 2/3] kvm tools: Add a script to setup tap device

2011-04-13 Thread Amos Kong
# ./kvm-ifup-vbr0 $tap_name Signed-off-by: Amos Kong kongjian...@gmail.com --- tools/kvm/util/kvm-ifup-vbr0 |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) create mode 100755 tools/kvm/util/kvm-ifup-vbr0 diff --git a/tools/kvm/util/kvm-ifup-vbr0 b/tools/kvm/util/kvm-ifup-vbr0

[PATCH 3/3] kvm tools: Setup bridged network by a script

2011-04-13 Thread Amos Kong
Signed-off-by: Amos Kong kongjian...@gmail.com --- tools/kvm/include/kvm/virtio-net.h |2 +- tools/kvm/kvm-run.c|9 - tools/kvm/virtio-net.c | 14 ++ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/tools/kvm/include/kvm/virtio

[PATCH 3/3 v2] kvm tools: Setup bridged network by a script

2011-04-15 Thread Amos Kong
Changes from v1: - rebased to latest tree - replace system() by execv() Signed-off-by: Amos Kong kongjian...@gmail.com --- tools/kvm/include/kvm/virtio-net.h |1 + tools/kvm/kvm-run.c| 10 +- tools/kvm/virtio-net.c | 35 +-- 3

[PATCH] kvm tools: Add robust error handling for fork/waitpid()

2011-04-17 Thread Amos Kong
; + } + } this path does not seem to have robust error handling: both fork() and waitpid() can (and sometimes do) fail. If waitpid() fails then 'status' might be ununitialized as well, IIRC. Thanks, Ingo Signed-off-by: Amos Kong kongjian...@gmail.com --- tools/kvm/virtio-net.c | 11

Re: [Autotest] [KVM-AUTOTEST PATCH 11/14] KVM test: add kvm_monitor.py, an interface to QEMU monitors

2010-06-13 Thread Amos Kong
On Sun, Jun 13, 2010 at 05:33:42PM +0300, Michael Goldish wrote: This module should replace vm.send_monitor_cmd(). Instead of connecting to the monitor each time a command is issued, this module maintains a continuous connection to the monitor. It disconnects when a test terminates and

Re: [Autotest] [KVM-AUTOTEST PATCH 13/14] KVM test: kvm_monitor.py: add QMP interface

2010-06-13 Thread Amos Kong
On Sun, Jun 13, 2010 at 05:33:44PM +0300, Michael Goldish wrote: An initial QMP client implementation. Should be fully functional and supports asynchronous events. However, most tests must be modified to support it, because it returns output in a different format from the human monitor (the

[PATCH] KVM-test: Add a new macaddress pool algorithm

2010-07-05 Thread Amos Kong
to address_pool in following format: {'macpool': {'AE:9D:94:6A:9b:f9': ['20100310-165222-Wt7l:0']}} AE:9D:94:6A:9b:f9: mac address 20100310-165222-Wt7l : instance attribute of VM 0: index of NIC Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0

Re: [KVM-AUTOTEST PATCH v2] KVM test: use kvm_utils.find_command() where appropriate

2010-07-05 Thread Amos Kong
') Signed-off-by: Michael Goldish mgold...@redhat.com Reviewed-by: Amos Kong ak...@redhat.com Looks good for me, In the past, I've to create symbolic links for fix this issue. --- client/tests/kvm/kvm_preprocessing.py |6 +++--- client/tests/kvm/kvm_utils.py |7 --- 2 files

[Autotest PATCH 00/14] Patchset of network related subtests

2010-07-19 Thread Amos Kong
The following series contain 11 network related subtests, welcome to give me some suggestions about correctness, design, enhancement. Thank you so much! --- Amos Kong (14): KVM-test: Add a new macaddress pool algorithm KVM Test: Add a function get_interface_name

[Autotest][RFC PATCH 00/14] Patchset of network related subtests

2010-07-19 Thread Amos Kong
The following series contain 11 network related subtests, welcome to give me some suggestions about correctness, design, enhancement. Thank you so much! --- Amos Kong (14): KVM-test: Add a new macaddress pool algorithm KVM Test: Add a function get_interface_name

[RFC PATCH 01/14] KVM-test: Add a new macaddress pool algorithm

2010-07-19 Thread Amos Kong
...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index fb2d1c2..7c0946e 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -5,6 +5,7

[RFC PATCH 02/14] KVM Test: Add a function get_interface_name() to kvm_net_utils.py

2010-07-19 Thread Amos Kong
The function get_interface_name is used to get the interface name of linux guest through the macaddress of specified macaddress. Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests

[RFC PATCH 03/14] KVM Test: Add a common ping module for network related tests

2010-07-19 Thread Amos Kong
The kvm_net_utils.py is a just a place that wraps common network related commands which is used to do the network-related tests. Use -1 as the packet ratio for loss analysis. Use quiet mode when doing the flood ping. Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak

[RFC PATCH 04/14] KVM-test: Add a new subtest ping

2010-07-19 Thread Amos Kong
tests_base.cfg Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/ping.py b/client/tests/kvm/tests/ping.py new file mode 100644 index 000..cfccda4 --- /dev/null +++ b/client

[RFC PATCH 05/14] KVM-test: Add a subtest jumbo

2010-07-19 Thread Amos Kong
According to different nic model set different MTU for it. And ping from guest to host, to see whether tested size can be received by host. Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git

[RFC PATCH 06/14] KVM-test: Add basic file transfer test

2010-07-19 Thread Amos Kong
, this test will be fail. We can extend this test by using another disk later, then we can transfer larger files without the limit of first disk size. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/file_transfer.py b

[RFC PATCH 07/14] KVM-test: Add a subtest of load/unload nic driver

2010-07-19 Thread Amos Kong
Repeatedly load/unload nic driver, try to transfer file between guest and host by threads at the same time, and check the md5sum. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/nicdriver_unload.py b/client

[RFC PATCH 08/14] KVM-test: Add a subtest of nic promisc

2010-07-19 Thread Amos Kong
This test mainly covers TCP sent from host to guest and from guest to host with repeatedly turn on/off NIC promiscuous mode. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/nic_promisc.py b/client/tests/kvm

[RFC PATCH 09/14] KVM-test: Add a subtest of multicast

2010-07-19 Thread Amos Kong
Use 'ping' to test send/recive multicat packets. Flood ping test is also added. Limit guest network as 'bridge' mode, because multicast packets could not be transmitted to guest when using 'user' network. Add join_mcast.py for joining machine into multicast groups. Signed-off-by: Amos Kong ak

[RFC PATCH 10/14] KVM-test: Add a subtest of pxe

2010-07-19 Thread Amos Kong
This case just snoop tftp packet through tcpdump, it depends on public dhcp server, better to test it through dnsmasq. Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests

[RFC PATCH 11/14] KVM-test: Add a subtest of changing mac address

2010-07-19 Thread Amos Kong
Mainly test steps: 1. get a new mac from pool, and the old mac addr of guest. 2. execute the mac_change.sh in guest. 3. relogin to guest and query the interfaces info by `ifconfig` Signed-off-by: Cao, Chen k...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0

[RFC PATCH 12/14] KVM-test: Add a subtest of netperf

2010-07-19 Thread Amos Kong
TCP_SENDFILE UDP_STREAM. DLPI only supported by Unix, unix domain test is not necessary, so drop test of DLPI and unix domain. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/netperf.py b/client/tests/kvm/tests/netperf.py

Re: [Qemu-devel] [RFC PATCH 01/14] KVM-test: Add a new macaddress pool algorithm

2010-07-20 Thread Amos Kong
On Tue, Jul 20, 2010 at 01:19:39PM +0300, Michael Goldish wrote: Michael, Thanks for your comments. Let's simplify this method together. On 07/20/2010 04:34 AM, Amos Kong wrote: Old method uses the mac address in the configuration files which could lead serious problem when multiple tests

[PATCH] KVM Test: time_drift_with_stop: Wait a few seconds after the continue

2010-07-28 Thread Amos Kong
Except for kvm-clock, we need to wait a few seconds to let the interrupt lost during the stop to be reinjected. So sleep for 30 seconds ( could be configurated throug configuration file). Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed

Re: [Qemu-devel] [RFC PATCH 01/14] KVM-test: Add a new macaddress pool algorithm

2010-08-02 Thread Amos Kong
On Tue, Jul 20, 2010 at 06:53:27PM +0300, Michael Goldish wrote: On 07/20/2010 04:44 PM, Amos Kong wrote: On Tue, Jul 20, 2010 at 01:19:39PM +0300, Michael Goldish wrote: Michael, Thanks for your comments. Let's simplify this method together. I would produce a v2 later basing

Re: [Qemu-devel] [RFC PATCH 02/14] KVM Test: Add a function get_interface_name() to kvm_net_utils.py

2010-08-02 Thread Amos Kong
On Wed, Jul 28, 2010 at 01:29:22PM +0300, Michael Goldish wrote: On 07/27/2010 05:08 AM, Lucas Meneghel Rodrigues wrote: On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: The function get_interface_name is used to get the interface name of linux guest through the macaddress of specified

Re: [RFC PATCH 04/14] KVM-test: Add a new subtest ping

2010-08-02 Thread Amos Kong
On Tue, Jul 27, 2010 at 10:15:49AM -0300, Lucas Meneghel Rodrigues wrote: On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: This test use ping to check the virtual nics, it contains two kinds of test: 1. Packet loss ratio test, ping the guest with different size of packets. 2. Stress test

Re: [Autotest] [KVM-AUTOTEST PATCH v2 3/5] [RFC] KVM test: add whql_submission test

2010-08-04 Thread Amos Kong
On Thu, Jul 22, 2010 at 01:14:17PM +0300, Michael Goldish wrote: whql_submission runs a submission on a given device. It requires a functioning external DTM server which runs rss.exe like regular Windows VMs, preferably with administrator permissions. The submission is defined by descriptors

Re: [Qemu-devel] [RFC PATCH 10/14] KVM-test: Add a subtest of pxe

2010-08-10 Thread Amos Kong
On Wed, Jul 28, 2010 at 07:07:34PM -0300, Lucas Meneghel Rodrigues wrote: On Tue, 2010-07-20 at 09:36 +0800, Amos Kong wrote: This case just snoop tftp packet through tcpdump, it depends on public dhcp server, better to test it through dnsmasq. It would be a good idea to have an alternate

Re: [Autotest] [RFC PATCH 14/14] KVM-test: Add subtest of testing offload by ethtool

2010-08-10 Thread Amos Kong
On Tue, Aug 3, 2010 at 3:10 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On Tue, 2010-07-20 at 09:36 +0800, Amos Kong wrote: The latest case contains TX/RX/SG/TSO/GSO/GRO/LRO test. RTL8139 NIC doesn't support TSO, LRO, it's too old, so drop offload test from rtl8139. LRO, GRO are only

Re: [Autotest] [RFC PATCH 05/14] KVM-test: Add a subtest jumbo

2010-08-10 Thread Amos Kong
On Tue, Jul 27, 2010 at 10:13 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: According to different nic model set different MTU for it. And ping from guest to host, to see whether tested size can be received by host. Signed-off

Re: [Autotest] [Qemu-devel] [RFC PATCH 06/14] KVM-test: Add basic file transfer test

2010-08-10 Thread Amos Kong
On Tue, Jul 27, 2010 at 10:36 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: This test is the basic test of transfering file between host and guest. Try to transfer a large file from host to guest, and transfer it back to host

Re: [Autotest] [RFC PATCH 08/14] KVM-test: Add a subtest of nic promisc

2010-08-10 Thread Amos Kong
On Thu, Jul 29, 2010 at 5:35 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On Tue, 2010-07-20 at 09:35 +0800, Amos Kong wrote: This test mainly covers TCP sent from host to guest and from guest to host with repeatedly turn on/off NIC promiscuous mode. Signed-off-by: Amos Kong ak

Re: [Autotest] [KVM-AUTOTEST PATCH v2 5/5] [RFC] KVM test: add WHQL test definitions to tests_base.cfg.sample

2010-08-10 Thread Amos Kong
On Thu, Jul 22, 2010 at 01:14:19PM +0300, Michael Goldish wrote: The parameters that define submissions (dd_name_*, dd_data_*, desc_path_*) were collected from manually created submissions. I haven't yet collected the parameters for Windows 2003 and 2008, so for now WHQL tests are disabled

Re: [PATCH] BUG: Turnoff khugepaged before start tests

2010-08-18 Thread Amos Kong
On Tue, Aug 17, 2010 at 06:40:05PM -0400, jzupka wrote: --- client/tests/kvm/tests/ksm_overcommit.py |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) Looks good for me. Except some trailing whitespace :) After disable transparent hugepage, ksm_parallel can pass. ksm_serial

[Autotest][PATCH] KVM-test: Add new drive option 'werror'

2010-01-19 Thread Amos Kong
Add new drive option 'werror' of qemu-kvm command for KVM-autotest workframe. It can be configured by 'drive_werror' variable in configure file. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/kvm_vm.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH] KVM: Fix a build error

2010-03-20 Thread Amos Kong
/x86.c:3367: error: expected expression before ‘)’ token Signed-off-by: Amos Kong ak...@redhat.com --- arch/x86/kvm/x86.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index bb9a24a..097ad3a 100644 --- a/arch/x86/kvm/x86.c +++ b

Re: [KVM-AUTOTEST][PATCH 2/2][virtio-console] Fix compatibility with python 2.4.

2010-11-22 Thread Amos Kong
- Jiří Župka jzu...@redhat.com wrote: --- client/tests/kvm/scripts/virtio_guest.py | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/client/tests/kvm/scripts/virtio_guest.py b/client/tests/kvm/scripts/virtio_guest.py index

[PATCH 1/2] KVM-test: Add mount utility functions

2010-12-22 Thread Amos Kong
Add mount and umount function, you can assign source, mount_point, type and permission. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/kvm_utils.py | 55 + 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm

[PATCH 2/2] KVM-test: Add image_dopy test to prepare images

2010-12-22 Thread Amos Kong
image_copy is used to copy guests' images from NFS server to test machines. It takes too much time for installing guests everytime. You can config NFS server directory in tests_base.cfg. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/tests/image_copy.py | 45

Re: [Autotest] [PATCH] KVM test: Fix typos in ethtool

2011-01-09 Thread Amos Kong
On Fri, Jan 07, 2011 at 01:21:09PM -0200, Lucas Meneghel Rodrigues wrote: Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests/ethtool.py |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/tests/kvm/tests/ethtool.py

[PATCH] KVM-test: Add a ENOSPC subtest

2011-01-12 Thread Amos Kong
KVM guest always pauses on NOSPACE error, this test just repeatedly extend guest disk space and resume guest from paused status. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/scripts/check_image.py |0 client/tests/kvm/tests/enospc.py| 56

Re: [PATCH] KVM-test: Add a ENOSPC subtest

2011-01-13 Thread Amos Kong
- Original Message - From: Amos Kong ak...@redhat.com KVM guest always pauses on NOSPACE error, this test just repeatedly extend guest disk space and resume guest from paused status. Changes from v2: - Oops! Forgot to update tests_base.cfg.sample Changes from v1: - Use

[PATCH] KVM-test: enospc.py: Fix device name of ide disk

2011-01-14 Thread Amos Kong
For latest kernel, the device name of ide disk is 'sd*', not 'hd*'. Signed-off-by: Amos Kong ak...@redhat.com --- client/tests/kvm/tests/enospc.py |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/tests/enospc.py b/client/tests/kvm/tests/enospc.py index

[PATCH v2 00/17] Patchset of network related subtests

2010-08-23 Thread Amos Kong
This patchset contains 11 network related subtests, welcome more suggestions about correctness, design and enhancement. This is the version 2, thanks your comments. --- Amos Kong (17): KVM-test: Add a new macaddress pool algorithm Add a get_ifname function KVM Test: Add

[PATCH v2 01/17] KVM-test: Add a new macaddress pool algorithm

2010-08-23 Thread Amos Kong
-by: Jason Wang jasow...@redhat.com Signed-off-by: Feng Yang fy...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index fb2d1c2..b019fc5 100644 --- a/client/tests/kvm

[PATCH v2 02/17] Add a get_ifname function

2010-08-23 Thread Amos Kong
It's more clear to use 'nic_mode + nic_index + vnc_port' than 'tap0', It's also unique for one guest. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 6812c98..e4f216c 100755

[PATCH v2 03/17] KVM Test: Add a function get_interface_name() to kvm_test_utils.py

2010-08-23 Thread Amos Kong
The function get_interface_name is used to get the interface name of linux guest through the macaddress of specified macaddress. Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests

[PATCH v2 04/17] KVM Test: Add a common ping module for network related tests

2010-08-23 Thread Amos Kong
in raw_ping - Use session.sendline(\003) to send (ctrl+c) signal - Use None to indicate that the session should be local - Fix of coding style Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client

[PATCH v2 05/17] KVM-test: Add a new subtest ping

2010-08-23 Thread Amos Kong
. But we must check the ping result before/after flood-ping. The interval and packet size could be configurated through tests_base.cfg Changes from v1: - Improve error message Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions

[PATCH v2 06/17] KVM-test: Add a subtest jumbo

2010-08-23 Thread Amos Kong
According to different nic model set different MTU for it. And ping from guest to host, to see whether tested size can be received by host. Changes from v1: - Make standard of lost ratio can be configured Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com

[PATCH v2 07/17] KVM-test: Add basic file transfer test

2010-08-23 Thread Amos Kong
, this test will be fail. We can extend this test by using another disk later, then we can transfer larger files without the limit of first disk size. Changes from v1: - Use md5 to verify the integrity of files - Try to use autotest API, such as, utils.system() Signed-off-by: Amos Kong ak...@redhat.com

[PATCH v2 08/17] KVM-test: Add a subtest of load/unload nic driver

2010-08-23 Thread Amos Kong
Repeatedly load/unload nic driver, try to transfer file between guest and host by threads at the same time, and check the md5sum. Changes from v1: - Use a new method to get nic driver name - Use utils.hash_file() to get md5sum Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0

[PATCH v2 09/17] KVM-test: Add a subtest of nic promisc

2010-08-23 Thread Amos Kong
This test mainly covers TCP sent from host to guest and from guest to host with repeatedly turn on/off NIC promiscuous mode. Changes from v1: - Don't abruptly fail the whole test if we get a failure for a single size Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions

[PATCH v2 10/17] KVM-test: Add a subtest of multicast

2010-08-23 Thread Amos Kong
the firewall rules with iptables -F Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/scripts/join_mcast.py b/client/tests/kvm/scripts/join_mcast.py new file mode 100755 index 000..0d90e5c --- /dev/null +++ b/client

[PATCH v2 11/17] KVM-test: Add a subtest of pxe

2010-08-23 Thread Amos Kong
This case just snoop tftp packet through tcpdump, it depends on public dhcp server, better to test it through dnsmasq. FIXME: Use dnsmasq for pxe test Signed-off-by: Jason Wang jasow...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions

[PATCH v2 12/17] KVM-test: Add a subtest of changing mac address

2010-08-23 Thread Amos Kong
Mainly test steps: 1. get a new mac from pool, and the old mac addr of guest. 2. execute the mac_change.sh in guest. 3. relogin to guest and query the interfaces info by `ifconfig` Signed-off-by: Cao, Chen k...@redhat.com Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0

[PATCH v2 13/17] KVM-test: Add a subtest of netperf

2010-08-23 Thread Amos Kong
TCP_SENDFILE UDP_STREAM. DLPI only supported by Unix, unix domain test is not necessary, so drop test of DLPI and unix domain. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/netperf.py b/client/tests/kvm/tests/netperf.py

[PATCH v2 14/17] Add support of check if remote port free

2010-08-23 Thread Amos Kong
Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index b019fc5..a24585b 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -789,7 +789,7 @@ def

[PATCH v2 15/17] KVM-test: Improve vlan subtest

2010-08-23 Thread Amos Kong
vlan . Maximal plumb/unplumb vlans Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/vlan.py b/client/tests/kvm/tests/vlan.py new file mode 100644 index 000..a9c84b2 --- /dev/null +++ b/client/tests/kvm/tests

[PATCH v2 16/17] Vlan: Replace extra_params '-snapshot' with image_snapshot

2010-08-23 Thread Amos Kong
Framework could not totalise default extra_params and extra_params_vm1 in the following condition, it's difficult to realise when parsing config file or calling get_sub_dict*(). extra_params += ' str1' - case: extra_params_vm1 += str2 Signed-off-by: Amos Kong ak...@redhat.com --- 0 files

[PATCH v2 17/17] KVM-test: Add subtest of testing offload by ethtool

2010-08-23 Thread Amos Kong
, match new opened TCP port by netstat. Capture the packages info by tcpdump, it contains package length. FIXME: Quary supported offload function by 'ethtool' Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/ethtool.py

[PATCH] [DRAFT] KVM-TEST: Use cdrom for Linux guests in unattended_install

2010-08-31 Thread Amos Kong
Bug 615839 - kernel panic when install guest with -fda There exists a bug of floppy driver, it blocked our installation tests. So replace floppy with cdrom for Linux guestsin unattended_install. Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions

[PATCH v2] KVM-TEST: Use cdrom for Linux guests in unattended_install

2010-09-01 Thread Amos Kong
-by: Amos Kong ak...@redhat.com --- client/tests/kvm/scripts/unattended.py | 127 ++-- client/tests/kvm/tests_base.cfg.sample | 88 -- 2 files changed, 119 insertions(+), 96 deletions(-) diff --git a/client/tests/kvm/scripts/unattended.py b/client

Fwd: Guest hangs when I do general operation.

2010-09-06 Thread Amos Kong
-- Forwarded message -- From: Amos Kong kongjian...@gmail.com Date: Tue, Sep 7, 2010 at 7:49 AM Subject: Guest hangs when I do general operation. To: 王箫 siro...@gmail.com kvm upstream: 43e413f7db1a4a90671dda0b1d6c1f8cb30673ed KVM: Whitespace changes to remove differences wrt kvm

Re: [Autotest] [PATCH 2/2] KVM test: unittest: Build unittests from new repo

2010-09-07 Thread Amos Kong
On Mon, Sep 06, 2010 at 05:33:11PM +0800, Jason Wang wrote: Kvm-unit-tests have moved to a repo out of qemu-kvm. This patch let the unittest could build the tests from specified git repo. Looks good for me. Reviewed-by: Amos Kong ak...@redhat.com Signed-off-by: Jason Wang jasow

[PATCH] [KVM-Unit-Tests] Add summary to kvmclock test

2010-09-07 Thread Amos Kong
This summary would be helpful when analyze test log Signed-off-by: Amos Kong ak...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/x86/kvmclock_test.c b/x86/kvmclock_test.c index 5b14ae2..97fe6b3 100644 --- a/x86/kvmclock_test.c +++ b/x86/kvmclock_test.c @@ -19,12

Re: [Qemu-devel] Fwd: Guest hangs when I do general operation.

2010-09-07 Thread Amos Kong
On Wed, Sep 8, 2010 at 1:55 AM, Blue Swirl blauwir...@gmail.com wrote: On Tue, Sep 7, 2010 at 2:43 AM, Amos Kong kongjian...@gmail.com wrote: kvm upstream: 43e413f7db1a4a90671dda0b1d6c1f8cb30673ed KVM: Whitespace changes to remove differences wrt kvm-updates/2.6.37 qemu upstream

  1   2   3   4   >