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

2010-08-23 Thread Amos Kong
n. - Do not copy 'vm.instance' in vm.clone() - Split 'adding get_ifname function' to another patch Signed-off-by: Jason Wang Signed-off-by: Feng Yang Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b/c

[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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 6812c9

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_test_utils.py b/client

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

2010-08-23 Thread Amos Kong
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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_test_u

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

2010-08-23 Thread Amos Kong
trict. 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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions

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

2010-08-23 Thread Amos Kong
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 --- 0 files

[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 --- 0 files changed, 0 insertions(+), 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 --- 0 files changed, 0 insertions(+), 0 dele

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

2010-08-23 Thread Amos Kong
Changes from v1: - Just flush the firewall rules with iptables -F Signed-off-by: Amos Kong --- 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

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff

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

2010-08-23 Thread Amos Kong
AERTS 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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/netperf.py b/client/tests/kvm/tests/netperf.py new

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

2010-08-23 Thread Amos Kong
Signed-off-by: Amos Kong --- 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 scp_from_remote

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

2010-08-23 Thread Amos Kong
tween same vlan . Maximal plumb/unplumb vlans Signed-off-by: Amos Kong --- 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/vlan.

[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

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

2010-08-23 Thread Amos Kong
tween host and guest, 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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/te

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

2010-08-30 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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client

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

2010-09-01 Thread Amos Kong
: Amos Kong --- 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/tests/kvm/scripts

Fwd: Guest hangs when I do general operation.

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

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 > Signed-off-by: Jason Wang > --- > c

[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 --- 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 +19,15 @@ struct

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 wrote: > On Tue, Sep 7, 2010 at 2:43 AM, Amos Kong wrote: >> >> kvm upstream: 43e413f7db1a4a90671dda0b1d6c1f8cb30673ed KVM: Whitespace >> changes to remove differences wrt kvm-updates/2.6.37 >> qemu upstream: cb93bbdd7db92e50f

Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-13 Thread Amos Kong
On Fri, Sep 10, 2010 at 02:47:56PM -0700, H. Peter Anvin wrote: > I discovered that none of the audio device models supported by current > Qemu/KVM appear to be supported out of the box on Win7 64 bit (AC97 > works fine on 32 bit). The most logical ways to fix that would be to > add a long-term su

Re: [KVM-AUTOTEST PATCH] tests/kvm: fix -net syntax for new qemu

2010-09-13 Thread Amos Kong
On Mon, Sep 13, 2010 at 07:43:22PM +0200, Michael S. Tsirkin wrote: > netdev option in new qemu is mutually exclusive with vlan. > Only pass vlan if netdev option is missing. > > Signed-off-by: Michael S. Tsirkin This fix looks good for me. Reviewed-by: Amos Kong BTW, we try to p

Re: [PATCH] [RFC] Add support for a USB audio device model

2010-09-13 Thread Amos Kong
On Mon, Sep 13, 2010 at 02:04:57PM -0700, H. Peter Anvin wrote: > On 09/13/2010 01:53 PM, Amos Kong wrote: > > > > # patch -p1 < /tmp/usb-audio.patch > > # ./configure > > ... > > ... > > preadv supportyes > > fdatasync yes > > u

Re: [PATCH 11/18] KVM test: Add a subtest of multicast

2010-10-05 Thread Amos Kong
On Mon, Sep 27, 2010 at 06:43:57PM -0400, Lucas Meneghel Rodrigues wrote: > From: 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 b

Re: [PATCH 16/18] KVM test: Improve vlan subtest

2010-10-05 Thread Amos Kong
On Thu, Sep 30, 2010 at 12:29:40PM +0530, pradeep wrote: > On Mon, 27 Sep 2010 18:44:02 -0400 > Lucas Meneghel Rodrigues wrote: > > > From: Amos Kong > > > > This is an enhancement of existed vlan test. Rename the vlan_tag.py > > to vlan.py, it is more reason

Re: [PATCH 14/18] KVM test: Add a netperf subtest

2010-10-05 Thread Amos Kong
On Tue, Oct 05, 2010 at 02:30:18PM +0530, pradeep wrote: > In Todo list i find TCP_CRR UDP_RR test case failures. > > 2) netperf > > 17:35:11 DEBUG| Execute netperf client > test: /root/autotest/client/tests/netperf2/netperf-2.4.5/src/netperf -t > TCP_CRR -H 10.16.74.142 -l 60 -- -m 1 17:35:45

Re: [PATCH 09/18] KVM test: Add a subtest of load/unload nic driver

2010-10-05 Thread Amos Kong
se utils.hash_file() to get md5sum > > Signed-off-by: Amos Kong > Signed-off-by: Lucas Meneghel Rodrigues > --- > client/tests/kvm/tests/nicdriver_unload.py | 115 > > client/tests/kvm/tests_base.cfg.sample | 10 ++- > 2 fil

Re: Network Patch set V4

2010-10-12 Thread Amos Kong
On Mon, Oct 11, 2010 at 08:09:27PM +0530, pradeep wrote: > Hi Lucas, i covered below tests on RHEL 5.5 , RHEL 6 guests with vhost > enbled. Please find the below errors and cause for errros. > > I also attached few other test cases can be added to out TODO list of > network patchset. I am workin

Re: [Autotest] [AUTOTEST MIRROR][PATCH] Introduce .gitignore file

2010-10-13 Thread Amos Kong
On Wed, Oct 13, 2010 at 12:47 AM, Lucas Meneghel Rodrigues wrote: > On Tue, 2010-10-12 at 18:24 +0200, Avi Kivity wrote: >> On 10/12/2010 06:18 PM, Lucas Meneghel Rodrigues wrote: >> > On Fri, 2010-10-08 at 15:02 -0300, Eduardo Habkost wrote: >> > >  On Thu, Oct 07, 2010 at 05:22:17PM -0300, Luiz

Re: [AUTOTEST] [PATCH 1/2] KVM : ping6 test

2010-10-14 Thread Amos Kong
On Thu, Oct 14, 2010 at 02:56:59PM +0530, pradeep wrote: > This patch is for Ping6 testing > > * ping6 with various message sizes guest to/from local/remote host > using link-local addresses > By default IPv6 seems to be disabled on virbr0. Enable it by > doing echo 0 > /pr

[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 >&g

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" wrote: > > > On 10/15/2009 11:48 AM, Amos Kong wrote: > > > > > > Test 802.1Q vlan of nic, config it by

[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 --- 0 files changed, 0 insertions(+), 0 dele

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

2009-10-26 Thread Amos Kong
setup in configure file. Signed-off-by: Amos Kong --- 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/vlan_tag.py diff

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

[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 --- client/tests/kvm/tests/timedrif

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

2009-12-25 Thread Amos Kong
On Fri, Dec 25, 2009 at 08:28:18AM -0500, Michael Goldish wrote: > > - "Amos Kong" wrote: > > > If login timeout, wait_for() returned 'None' and assigned to > > 'session'. > > When call session.close(), this prlblem was caused: >

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" wrote: > > > On Fri, Dec 25, 2009 at 08:28:18AM -0500, Michael Goldish wrote: > > > > > > - "Amos Kong" wrote: > > > > &

[AUTOTEST PATCH] KVM-test: Convert drift to absolute value when comparing with threshold

2009-12-29 Thread Amos Kong
If drift is a large negative, it couldn't raise exception. Signed-off-by: Amos Kong --- client/tests/kvm/tests/timedrift.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/tests/timedrift.py b/client/tests/kvm/tests/timedrift.py index 14

Re: [Autotest] [Autotest PATCH] KVM-test: Add a subtest image_copy

2010-01-04 Thread Amos Kong
> +logging.info("Copying image '%s'..." % image) > +cmd = "cp %s %s" % (src_path, dst_path) > +s, o = commands.getstatusoutput(cmd) > +if s != 0: > +raise error.TestFail("Failed to copy image %s: %s" % (cmd, o)) > diff --git a/client/tests/kvm/tests_bas

[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 --- client/tests/kvm/kvm_vm.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --gi

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
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 --- 0 fil

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

2010-07-05 Thread Amos Kong
and' instead of 'cmd') > > Signed-off-by: Michael Goldish Reviewed-by: Amos Kong 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

[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() to

[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() to

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

2010-07-19 Thread Amos Kong
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: Jason Wang Signed-off-by: Feng

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_net_utils.py b/client

[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 Signed-off-by: Amos Kong --- 0 files changed, 0

[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 Signed-off-by: Amos Kong --- 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/tests/kvm/tests/ping.py @@ -0,0 +1,71

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/jumbo.py b

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

2010-07-19 Thread Amos Kong
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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/file_transfer.py b/client/tests/kvm

[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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/nicdriver_unload.py b/client/tests/kvm/tests

[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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/nic_promisc.py b/client/tests/kvm/tests/nic_promisc.py

[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 gro

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/pxe.py b/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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff

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

2010-07-19 Thread Amos Kong
AERTS 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 --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/netperf.py b/client/tests/kvm/tests/netperf.py new

[RFC PATCH 13/14] KVM-test: Improve vlan subtest

2010-07-19 Thread Amos Kong
tween same vlan . Maximal plumb/unplumb vlans Signed-off-by: Amos Kong --- 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..dc7611b --- /dev/null +++ b/client/tests/kvm/tests/vlan.

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

2010-07-19 Thread Amos Kong
tween host and guest, match new opened TCP port by netstat. Capture the packages info by tcpdump, it contains package length. Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/ethtool.py b/client/tests/kvm/tests/ethtool.py new fi

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 seriou

[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 Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions

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 simpl

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 > >> gues

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

Re: [KVM-AUTOTEST PATCH 6/9] [RFC] KVM test: add utility functions start_windows_service() and stop_windows_service()

2010-08-04 Thread Amos Kong
On Thu, Jul 15, 2010 at 06:57:35PM +0300, Michael Goldish wrote: > These utilities use sc to stop and start windows services. They're used by > whql_submission > and whql_client_install to stop or restart wttsvc on the client machine. > > Signed-off-by: Michael Goldish > --- > client/tests/kvm

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 descripto

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

2010-08-09 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

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 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 rtl8

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 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. >&

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 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

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 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-

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 disabl

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_seria

Re: [PATCH] KVM: PPC: Fix SREGS documentation reference

2012-12-11 Thread Amos Kong
TS + 63) / 64]; > }; > > -/* ppc -- see arch/powerpc/include/asm/kvm.h */ > +/* ppc -- see arch/powerpc/include/uapi/asm/kvm.h */ Trivial fix. Reviewed-by: Amos Kong > > interrupt_bitmap is a bitmap of pending external interrupts. At most > one bit may be set

Re: [RFC PATCH 0/2] make mac programming for virtio net more robust

2013-01-10 Thread Amos Kong
On Thu, Jan 10, 2013 at 10:45:39PM +0800, ak...@redhat.com wrote: > From: Amos Kong > > Currenly mac is programmed byte by byte. This means that we > have an intermediate step where mac is wrong. > > Second patch introduced a new vq control command to set mac > address

Re: [Qemu-devel] [RFC PATCH 2/2] virtio-net: introduce a new control to set macaddr

2013-01-15 Thread Amos Kong
On Thu, Jan 10, 2013 at 10:57:05PM +0800, Jason Wang wrote: > On 01/10/2013 10:45 PM, ak...@redhat.com wrote: > > From: Amos Kong > > > > Currently we write MAC address to pci config space byte by byte, > > this means that we have an intermediate step where mac is wrong

Re: [PATCH v2 2/2] virtio-net: introduce a new control to set macaddr

2013-01-16 Thread Amos Kong
On Wed, Jan 16, 2013 at 02:20:39PM +0800, Jason Wang wrote: > On Wednesday, January 16, 2013 01:57:01 PM ak...@redhat.com wrote: > > From: Amos Kong > > > > Currently we write MAC address to pci config space byte by byte, > > this means that we have an intermedi

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-16 Thread Amos Kong
On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > ak...@redhat.com writes: > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t > > cmd, > > { > > struct virtio_net_ctrl_mac mac_data; > > > > +if (cmd == VIRTIO_NET_CTRL_MAC_ADDR_SET && elem->ou

Re: [PATCH] virtio-spec: set mac address by a new vq command

2013-01-16 Thread Amos Kong
On Wed, Jan 16, 2013 at 11:22:23AM +0200, Michael S. Tsirkin wrote: > On Wed, Jan 16, 2013 at 10:13:28AM +0100, Stefan Hajnoczi wrote: > > On Wed, Jan 16, 2013 at 03:33:24PM +0800, ak...@redhat.com wrote: > > > +\change_inserted -1930653948 1358320004 > > > +The command VIRTIO_NET_CTRL_MAC_ADDR_SET

Re: [Qemu-devel] [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Amos Kong
On Thu, Jan 17, 2013 at 01:45:11PM +0800, Amos Kong wrote: > On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > > ak...@redhat.com writes: > > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, > > > uint8_t cmd, > > > { &

Re: [QEMU PATCH v2] virtio-net: introduce a new macaddr control

2013-01-17 Thread Amos Kong
On Thu, Jan 17, 2013 at 02:13:08PM +0200, Michael S. Tsirkin wrote: > On Thu, Jan 17, 2013 at 11:49:20AM +1030, Rusty Russell wrote: > > ak...@redhat.com writes: > > > @@ -349,6 +351,14 @@ static int virtio_net_handle_mac(VirtIONet *n, > > > uint8_t cmd, > > > { > > > struct virtio_net_ctrl_

Re: [Qemu-devel] [QEMU PATCH v4 1/3] virtio-net: remove layout assumptions for ctrl vq

2013-01-18 Thread Amos Kong
on the layout of descriptors. > > Signed-off-by: Michael S. Tsirkin > Signed-off-by: Amos Kong > --- > hw/virtio-net.c | 128 > > 1 file changed, 74 insertions(+), 54 deletions(-) Had tested this patch with following sc

Re: [PATCH v3 2/2] virtio-net: introduce a new control to set macaddr

2013-01-19 Thread Amos Kong
On Fri, Jan 18, 2013 at 12:00:42PM +0100, Stefan Hajnoczi wrote: > On Thu, Jan 17, 2013 at 06:40:12PM +0800, ak...@redhat.com wrote: > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > > index 395ab4f..837c978 100644 > > --- a/drivers/net/virtio_net.c > > +++ b/drivers/net/virtio

[PATCH v5 0/3] make mac programming for virtio net more robust

2013-01-21 Thread Amos Kong
o set hardware address V4: split eth_mac_addr, fix error handle V5: rebase patches to net-next tree Amos Kong (2): move virtnet_send_command() above virtnet_set_mac_address() virtio-net: introduce a new control to set macaddr Stefan Hajnoczi (1): net: split eth_mac_addr for better error han

[PATCH v5 1/3] move virtnet_send_command() above virtnet_set_mac_address()

2013-01-21 Thread Amos Kong
We want to send vq command to set mac address in virtnet_set_mac_address(), so do this function moving. Fixed a little issue of coding style. Signed-off-by: Amos Kong --- drivers/net/virtio_net.c | 89 ++--- 1 files changed, 44 insertions(+), 45

[PATCH v5 2/3] net: split eth_mac_addr for better error handling

2013-01-21 Thread Amos Kong
e can prepare first, and try to change hardware address, then do the real commit if hardware address is set successfully. Signed-off-by: Stefan Hajnoczi Signed-off-by: Amos Kong --- include/linux/etherdevice.h |2 ++ net/ethernet/eth.c | 41 +++-- 2

[PATCH v5 3/3] virtio-net: introduce a new control to set macaddr

2013-01-21 Thread Amos Kong
Currently we write MAC address to pci config space byte by byte, this means that we have an intermediate step where mac is wrong. This patch introduced a new control command to set MAC address, it's atomic. VIRTIO_NET_F_CTRL_MAC_ADDR is a new feature bit for compatibility. Signed-off-by:

Re: [QEMU PATCH v4 2/3] virtio-net: introduce a new macaddr control

2013-01-22 Thread Amos Kong
On Mon, Jan 21, 2013 at 05:08:26PM +0100, Stefan Hajnoczi wrote: > On Sat, Jan 19, 2013 at 09:54:27AM +0800, ak...@redhat.com wrote: > > @@ -350,6 +351,18 @@ static int virtio_net_handle_mac(VirtIONet *n, uint8_t > > cmd, > > struct virtio_net_ctrl_mac mac_data; > > size_t s; > > > > +

Re: [QEMU PATCH v4 1/3] virtio-net: remove layout assumptions for ctrl vq

2013-01-22 Thread Amos Kong
the header, sg[1] is the data buffer). > > > > This patch makes code not rely on the layout of descriptors. > > > > Signed-off-by: Michael S. Tsirkin > > Signed-off-by: Amos Kong > > --- > > hw/virtio-net.c | 128 > > +++

[QEMU PATCH v5 3/3] virtio-net: rename ctrl rx commands

2013-01-22 Thread Amos Kong
This patch makes rx commands consistent with specification. Signed-off-by: Amos Kong --- hw/virtio-net.c | 14 +++--- hw/virtio-net.h | 14 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index acef5a5..ac4434e 100644

[QEMU PATCH v5 1/3] virtio-net: remove layout assumptions for ctrl vq

2013-01-22 Thread Amos Kong
From: Michael S. Tsirkin Virtio-net code makes assumption about virtqueue descriptor layout (e.g. sg[0] is the header, sg[1] is the data buffer). This patch makes code not rely on the layout of descriptors. Signed-off-by: Michael S. Tsirkin Signed-off-by: Amos Kong --- hw/virtio-net.c

[QEMU PATCH v5 0/3] virtio-net: fix of ctrl commands

2013-01-22 Thread Amos Kong
when new feature is acked V4: add fix of descriptor layout assumptions, trivial rename V5: fix endianness after iov_to_buf copy Amos Kong (2): virtio-net: introduce a new macaddr control virtio-net: rename ctrl rx commands Michael S. Tsirkin (1): virtio-net: remove layout assumptions for ct

<    1   2   3   4