[PATCH] KVM-test: Add subtest cdrom

2011-07-10 Thread Amos Kong
Test cdrom about mount/format/copy/md5sum, change iso file by monitor command, create iso files by pre_command, clean temporary file by post_command. Signed-off-by: Amos Kong --- client/tests/kvm/tests/cdrom.py| 131 client/tests/kvm

[PATCH] KVM test: Add subtest nmi_watchdog

2011-07-11 Thread Amos Kong
Uses kernel supported nmi_watchdog to test the nmi support of kvm, check the nmi count in Linux platform through /proc/interrupts. Signed-off-by: Amos Kong --- client/tests/kvm/tests/nmi_watchdog.py | 57 client/tests/kvm/tests_base.cfg.sample |7 2

Re: [Autotest] KVM autotest tip of the week - How to run KVM autotest tests on an existing guest image

2011-07-25 Thread Amos Kong
On Mon, Jul 25, 2011 at 03:25:15PM -0300, Lucas Meneghel Rodrigues wrote: > Hi folks, a little later than expected, here are the docs that explain > how to run KVM autotest tests on an existing guest image: > > http://autotest.kernel.org/wiki/KVMAutotest/RunTestsExistingGuest Good work! Lucas A

[PATCH] KVM-test: Add new subtest: floppy

2011-07-28 Thread Amos Kong
This test does some basic operation on the virtual floppy, it supports both Linux and Windows guests. Signed-off-by: Amos Kong --- client/tests/kvm/tests/floppy.py | 62 client/tests/kvm/tests_base.cfg.sample | 23 2 files changed, 85

[RFC PATCH] KVM-test: Add subtest: usb

2011-07-28 Thread Amos Kong
mp/kvm_autotest_root/images/usbdevice.qcow2',if=none,cache=none,id=usb2.1 -device usb-storage,bus=ehci.0,drive=usb2.1,port=2 12:42:16 INFO | (qemu) *** EHCI support is under development *** CC: Gerd Hoffmann Signed-off-by: Amos Kong --- client/tests/kvm/tes

Re: [PATCH] KVM test: Add a subtest cpuflags

2011-07-28 Thread Amos Kong
On Thu, Mar 4, 2010 at 3:20 PM, sshang wrote: >  This test mainly tests whether all guest cpu flags are supported by host > machine. > > Signed-off-by: sshang Hi Lucas, It seems that this patch[1] was lost by us. Have confirmed with shuang, this subtest needs to be refactored. So let's wait th

[PATCH] KVM-test: Add hdparm subtest

2011-08-01 Thread Amos Kong
This test uses 'hdparm' to set disk device to low/high performance status, and compare the reading speed. The emulated device should pass all the tests. Signed-off-by: Feng Yang Signed-off-by: Amos Kong --- client/tests/kvm/tests/hdparm.py | 84 ++

Re: [RFC PATCH] KVM-test: Add subtest: usb

2011-08-02 Thread Amos Kong
- Original Message - > On 07/29/11 06:53, Amos Kong wrote: > > This test adds a usb storage for the guest, and do some check from > > monitor and > > inside the guest. > > It's not very stable, could you help to review if something is > > wrong? &g

[PATCH v2] KVM-test: Add subtest: usb

2011-08-02 Thread Amos Kong
atch device with the detail output of 'lsusb -v' - create disk image by pre_cmd CC: Gerd Hoffmann Signed-off-by: Amos Kong --- client/tests/kvm/tests/usb.py | 50 client/tests/kvm/tests_base.cfg.sample |9 ++ 2 files changed, 59 inserti

[PATCH v3] KVM-test: Add subtest: usb

2011-08-02 Thread Amos Kong
atch device with the detail output of 'lsusb -v' - create disk image by pre_cmd Changes from v2: - reuse the new interface to add a usb disk to guest - report a rh-bug 727725 CC: Gerd Hoffmann Signed-off-by: Amos Kong --- client/tests/kvm/tests/usb.py | 50

Re: [PATCH] KVM Test: Call postprocess_vm before postprocess_image.

2011-08-04 Thread Amos Kong
in vm_params.objects("images"): image_params = vm_params.object_params(image_name) # Call image_func for each image image_func(test, image_params) if not vm_first: vm_func(test, vm_params, env, vm_name) However, I'm

Re: [PATCH] kvm tools: Sanitize output characters in serial console

2011-08-10 Thread Amos Kong
On Wed, Aug 10, 2011 at 2:53 PM, walimis wrote: > On Wed, Aug 10, 2011 at 02:15:45PM +0800, Asias He wrote: >>On 08/10/2011 01:55 PM, Pekka Enberg wrote: >>> On Wed, Aug 10, 2011 at 8:43 AM, Asias He wrote: On 08/10/2011 01:30 PM, Pekka Enberg wrote: > On 8/10/11 2:56 AM, Asias He wrote:

[PATCH] KVM-test: Add two scripts to disable services for perf tests

2011-09-06 Thread Amos Kong
can use them to prepare environment for performance testcases. Signed-off-by: Amos Kong --- client/tests/kvm/scripts/off_services_perf.sh | 27 client/tests/kvm/scripts/stop_services_perf.sh | 27 2 files changed, 54 insertions(+), 0 deletions

Re: [PATCH] KVM-test: Add two scripts to disable services for perf tests

2011-09-08 Thread Amos Kong
- Original Message - > On Wed, 07 Sep 2011 14:07:49 +0800, Amos Kong > wrote: > > > System services on guest and host take uncertain resource, it > > effects > > the perf results. We can use the below two scripts to disable some >

About hotplug multifunction

2011-09-09 Thread Amos Kong
Hello all, I'm working on hotplug pci multifunction. 1. qemu cmdline: ./x86_64-softmmu/qemu-system-x86_64 -snapshot -m 2000 /home/kvm_autotest_root/images/rhel61-64-virtio.qcow2 -vnc :0 -monitor unix:/tmp/a,server,nowait --enable-kvm -net none 2. script to add virtio-blk devices: for i in `s

Re: About hotplug multifunction

2011-09-13 Thread Amos Kong
Hi all, After reading the pci driver code, I found a problem. There is a list for each slot, (slot->funcs) it will be inited in acpiphp_glue.c:register_slot() before hotpluging device, and only one entry(func 0) will be added to it, no new entry will be added to the list when hotpluging devices t

Re: About hotplug multifunction

2011-09-13 Thread Amos Kong
- Original Message - > Hi all, I've tested with WinXp guest, the multifunction hotplug works. > After reading the pci driver code, I found a problem. > > There is a list for each slot, (slot->funcs) > it will be inited in acpiphp_glue.c:register_slot() before hotpluging > device, > and o

[PATCH] pci: clean all funcs when hot-removing multifunc device

2011-09-13 Thread Amos Kong
ntroller: Red Hat, Inc Virtio block device (rev ff) @ ls /dev/vd* vdb vdc vde vdf vdg vdh @ mkfs /dev/vdb INFO: task mkfs.ext2:1784 blocked for more than 120 seconds. (task hung) Hotpluging multifunc of WinXp is fine. Signed-off-by: Amos Ko

Re: [PATCH] pci: clean all funcs when hot-removing multifunc device

2011-09-14 Thread Amos Kong
- Original Message - > (2011/09/14 13:55), Amos Kong wrote: > > 'slot->funcs' is initialized in acpiphp_glue.c:register_slot() > > before > > hotpluging device, and only one entry(func 0) is added to it, > > no new entry will be added to the list

Re: [PATCH] pci: clean all funcs when hot-removing multifunc device

2011-09-14 Thread Amos Kong
- Original Message - > - Original Message - > > (2011/09/14 13:55), Amos Kong wrote: > > > 'slot->funcs' is initialized in acpiphp_glue.c:register_slot() > > > before > > > hotpluging device, and only one entry(func 0) is added to

[PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-15 Thread Amos Kong
xid's until the next reboot. Selecting a new 'xid' for each retransmission is an implementation decision. A client may choose to reuse the same 'xid' or select a new 'xid' for each retransmitted message. This patch generates random id when start dhcp, and recor

Re: [PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-15 Thread Amos Kong
- Original Message - > - Original Message - > > On Thu, 15 Sep 2011 21:00:38 +0800, Amos Kong > > wrote: > > > > > + netdev->xid = random(); > > > > This will not work for reboots. The decision that the hardware > > address >

Re: [PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-15 Thread Amos Kong
Whole Archive: http://marc.info/?l=kvm&m=131609166918121&w=2 - Original Message - > On Thu, 2011-09-15 at 10:43 -0400, Amos Kong wrote: > > - Original Message - > > > - Original Message - > > > > On Thu, 15 Sep 2011 21

Re: [PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-16 Thread Amos Kong
- Original Message - > On Thu, 2011-09-15 at 10:43 -0400, Amos Kong wrote: > > - Original Message - > > > - Original Message - > > > > On Thu, 15 Sep 2011 21:00:38 +0800, Amos Kong > > > > wrote: > > > > > > &

Re: [PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-17 Thread Amos Kong
- Original Message - > Whole Archive: http://marc.info/?l=kvm&m=131609166918121&w=2 > > - Original Message - > > On Thu, 2011-09-15 at 10:43 -0400, Amos Kong wrote: > > > - Original Message - > > > > - Original Message -

[IPXE PATCH] [dhcp] Use random transaction ID to associate messages

2011-09-17 Thread Amos Kong
ddress, it's easy to repeat, it always to be failed to get IP with PXE boot. RFC suggests us to use random xid, it's necessary. This patch generates random id when start dhcp, and record it to netdev struct. Signed-off-by: Amos Kong CC: Eduardo Habkost CC: Michael Brown --- src/include/i

[SEABIOS PATCH 0/2] fix of hotplug multi-func device

2011-09-18 Thread Amos Kong
Hotplug multi-func device doesn't work, only func 0 are regiestered to guest pci driver, this patchset just add device entry in ACPI DSDT tables for all functions in the slot. --- Amos Kong (2): Fix regression of commit 87b533bf hotplug: Add device per func in ACPI DSDT tables

[SeaBIOS PATCH 1/2] Fix regression of commit 87b533bf

2011-09-18 Thread Amos Kong
. However, a side effect of marking that code (handle_post) as init code is that it is more likely the linker could place the code at an address less than 0xe. The patch (just a hack) would cover up the issue. Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff

[SeaBIOS PATCH 2/2] hotplug: Add device per func in ACPI DSDT tables

2011-09-19 Thread Amos Kong
ing, single/multiple function device, they are all fine. new acpi-dst.hex(332K): http://amos-kong.rhcloud.com/pub/acpi-dsdt.hex Signed-off-by: Amos Kong --- src/acpi-dsdt.dsl | 31 +-- 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/acpi-dsdt.dsl b/

[SeaBIOS PATCH v2] Fix regression of commit 87b533bf

2011-09-20 Thread Amos Kong
>From 4678a3cb0e0a3cd7a4bc3d284c5719fdba90bc61 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 20 Sep 2011 15:43:55 +0800 Subject: [PATCH V2] Fix regression of commit 87b533bf From: Kevin O'Connor After adding more device entries in ACPI DSDT tables, the filesize of bios.bin changed fr

[SeaBIOS PATCH] hotplug: Add device per func in ACPI DSDT tables

2011-09-20 Thread Amos Kong
- Original Message - > On Mon, Sep 19, 2011 at 01:02:59PM +0300, Michael S. Tsirkin wrote: > > On Mon, Sep 19, 2011 at 12:57:33PM +0300, Gleb Natapov wrote: > > > On Mon, Sep 19, 2011 at 03:27:38AM -0400, Amos Kong wrote: > > > > > > > > Only fu

[SeaBIOS PATCH v2] hotplug: Add device per func in ACPI DSDT tables

2011-09-20 Thread Amos Kong
>From 48ea1c9188334b89a60b4f9e853e86fc04fda4a5 Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Tue, 20 Sep 2011 15:38:43 +0800 Subject: [SeaBIOS PATCH v2] hotplug: Add device per func in ACPI DSDT tables Only func 0 is registered to guest driver (we can only found func 0 in slot->funcs l

Re: [SeaBIOS PATCH v2] hotplug: Add device per func in ACPI DSDT tables

2011-09-20 Thread Amos Kong
- Original Message - > On Tue, Sep 20, 2011 at 06:45:57AM -0400, Amos Kong wrote: > > From 48ea1c9188334b89a60b4f9e853e86fc04fda4a5 Mon Sep 17 00:00:00 > > 2001 > > From: Amos Kong > > Date: Tue, 20 Sep 2011 15:38:43 +0800 > > Subject: [SeaBIOS PATCH v2

Re: [Autotest] [PATCH] KVM-test: Add two scripts to disable services for perf tests

2011-09-22 Thread Amos Kong
- Original Message - > On Wed, Sep 7, 2011 at 3:07 AM, Amos Kong wrote: > > System services on guest and host take uncertain resource, it > > effects > > the perf results. We can use the below two scripts to disable some > > services of host and guest. > &

Re: [PATCHv2 0/3] acpi: fix up EJ0 in DSDT

2011-09-28 Thread Amos Kong
, BIOS patches that to EJ0_ > - generic ACP_EXTRACT infrastructure that can match Method > and Name Operators > - instead of matching specific method name, insert tags > in original DSL source and match that to AML Patch looks good to me. Acked-by: Amos Kong

[Autotest PATCH] virt: Only update macaddr cache when capture dhcp ACK packet

2011-09-29 Thread Amos Kong
Currently, tcpdump can capture both dhcp Offer and ACK packets, macaddr cache will be updated in those to condition, dhcp Offer packet doesn't mean the IP is already allocated to dhcp client. Signed-off-by: Amos Kong --- client/virt/virt_env_process.py | 10 -- 1 files chang

Re: [Autotest] [PATCH 05/11] virt: Introducing libvirt VM class

2011-10-11 Thread Amos Kong
On 10/12/2011 05:07 AM, Lucas Meneghel Rodrigues wrote: This is a first attempt at providing a libvirt VM class, in order to implement the needed methods for virt testing. With this class, we will be able to implement a libvirt test, that behaves similarly to the KVM test. As of implementation d

Re: [Autotest] [PATCH 06/11] virt: Introducing libvirt monitor

2011-10-12 Thread Amos Kong
On 10/12/2011 05:07 AM, Lucas Meneghel Rodrigues wrote: This is an initial implementation for a libvirt monitor. With it, we plan on making the libvirt test use all the monitor features, making most of the tests available for kvm available for libvirt. As of implementation details, it uses aexpe

Re: About hotplug multifunction

2011-11-23 Thread Amos Kong
On 09/09/11 15:08, Amos Kong wrote: Hello all, I'm working on hotplug pci multifunction. 1. qemu cmdline: ./x86_64-softmmu/qemu-system-x86_64 -snapshot -m 2000 /home/kvm_autotest_root/images/rhel61-64-virtio.qcow2 -vnc :0 -monitor unix:/tmp/a,server,nowait --enable-kvm -net none 2. s

[PATCH] PCI: Can continually add funcs after adding func0

2011-11-24 Thread Amos Kong
dded. For pci multifunction hotplug, we can add functions one by one(func 0 is necessary), and all functions will be removed in one time. Signed-off-by: Amos Kong --- drivers/pci/hotplug/acpiphp_glue.c | 29 + 1 files changed, 13 insertions(+), 16 deletions(-)

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

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.

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 pol

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 Acked-by: Amos Kong > --- > 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 --- 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 Signed-off-by: Amos Kong --- 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/kvm_vm.py b/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 > --- > client/tool

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

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 wrote: > >> This patch makes Ctrl+a escape key. Ctrl+a+x will terminate kvm tools. > >> > >> It works for both serial and virtio console. > >

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

2011-04-10 Thread Amos Kong
Warning: request type 8 > > Program received signal SIGFPE, Arithmetic exception. > 0x004066cd in virt_queue__pop (queue=0x60d3c8) at > include/kvm/virtio.h:21 > 21 return queue->vring.avail->ring[queue->last_avail_idx++ % > queue-&

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

2011-04-10 Thread Amos Kong
Changes from v1: - move the check of virt_queue out of virt_queue__get_iov() Reported-by: Amos Kong Signed-off-by: Asias He Signed-off-by: Amos Kong --- tools/kvm/include/kvm/virtio.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/tools/kvm/include/kvm/virtio.

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 HAL

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

2011-04-10 Thread Amos Kong
On Sun, Apr 10, 2011 at 01:20:17PM +0300, Pekka Enberg wrote: > This patch cleans up the table-based setup for legacy devices to use > ioport__register(). > > Cc: Asias He > Cc: Cyrill Gorcunov > Cc: Ingo Molnar > Signed-off-by: Pekka Enberg Looks good for me. R

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 majord...@vger.kern

Re: [SeaBIOS PATCH v3] hotplug: Add device per func in ACPI DSDT tables

2011-12-06 Thread Amos Kong
- Original Message - > On Tue, Dec 06, 2011 at 01:39:35PM +0800, Amos Kong wrote: > > Only func 0 is registered to guest driver (we can > > only found func 0 in slot->funcs list of driver), > > the other functions could not be cleaned when > > hot-removing t

[PATCH] virt-test: Add a class NumaNode

2011-12-08 Thread Amos Kong
_cpu(i) | o = vm.monitor.info("cpus") | for i in re.findall("thread_id=(\d+)", o): | logging.debug("pin vcpu thread(%s) to host cpu node" % i) | p.pin_cpu(i) | p.show() Signed-off-by: Amos Kong --- client/tests/kvm/base.cfg.sample |5 client/

Re: [RFC] virtio: use mandatory barriers for remote processor vdevs

2011-12-11 Thread Amos Kong
On 12/12/11 06:27, Benjamin Herrenschmidt wrote: On Sun, 2011-12-11 at 14:25 +0200, Michael S. Tsirkin wrote: Forwarding some results by Amos, who run multiple netperf streams in parallel, from an external box to the guest. TCP_STREAM results were noisy. This could be due to buffering done by

Re: [RFC] virtio: use mandatory barriers for remote processor vdevs

2011-12-12 Thread Amos Kong
On 12/12/2011 01:12 PM, Rusty Russell wrote: > On Mon, 12 Dec 2011 11:06:53 +0800, Amos Kong wrote: >> On 12/12/11 06:27, Benjamin Herrenschmidt wrote: >>> On Sun, 2011-12-11 at 14:25 +0200, Michael S. Tsirkin wrote: >>> >>>> Forwarding some results by Am

Re: [RFC] virtio: use mandatory barriers for remote processor vdevs

2011-12-18 Thread Amos Kong
On 12/12/11 13:12, Rusty Russell wrote: On Mon, 12 Dec 2011 11:06:53 +0800, Amos Kong wrote: On 12/12/11 06:27, Benjamin Herrenschmidt wrote: On Sun, 2011-12-11 at 14:25 +0200, Michael S. Tsirkin wrote: Forwarding some results by Amos, who run multiple netperf streams in parallel, from an

Re: [RFC] virtio: use mandatory barriers for remote processor vdevs

2011-12-18 Thread Amos Kong
On 19/12/11 10:19, Amos Kong wrote: On 12/12/11 13:12, Rusty Russell wrote: On Mon, 12 Dec 2011 11:06:53 +0800, Amos Kong wrote: On 12/12/11 06:27, Benjamin Herrenschmidt wrote: On Sun, 2011-12-11 at 14:25 +0200, Michael S. Tsirkin wrote: Forwarding some results by Amos, who run multiple

Re: [RFC] virtio: use mandatory barriers for remote processor vdevs

2011-12-18 Thread Amos Kong
On 19/12/11 10:41, Benjamin Herrenschmidt wrote: On Mon, 2011-12-19 at 10:19 +0800, Amos Kong wrote: I tested with the same environment and scenarios. tested one scenarios for three times and compute the average for more precision. Thanks, Amos - compare results --- Mon Dec

Re: [SeaBIOS PATCH v3] hotplug: Add device per func in ACPI DSDT tables

2011-12-19 Thread Amos Kong
On 14/12/11 09:06, Kevin O'Connor wrote: On Tue, Dec 06, 2011 at 07:32:55PM -0500, Amos Kong wrote: - Original Message - On Tue, Dec 06, 2011 at 01:39:35PM +0800, Amos Kong wrote: Only func 0 is registered to guest driver (we can only found func 0 in slot->funcs list of driv

[PATCH] virt-test: support static ip address in framework

2011-12-19 Thread Amos Kong
ff-by: Amos Kong --- client/tests/kvm/base.cfg.sample |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/base.cfg.sample b/client/tests/kvm/base.cfg.sample index 411decf..c86ec1f 100644 --- a/client/tests/kvm/base.cfg.sample +++ b/client/tests/kvm/base.cfg.s

Re: [PATCH] virt-test: support static ip address in framework

2011-12-19 Thread Amos Kong
- Original Message - > * On 2011-12-19 21:11:32 +0800, Amos Kong (ak...@redhat.com) wrote: > > Sometime, we need to test with guest(s) which have static ip > > address(es). > > eg. No real/emulated DHCP server in test environment. > > eg. Test with old image we d

Re: [PATCH] virt-test: support static ip address in framework

2011-12-20 Thread Amos Kong
On 21/12/11 03:03, Lucas Meneghel Rodrigues wrote: On 12/19/2011 11:11 AM, Amos Kong wrote: Sometime, we need to test with guest(s) which have static ip address(es). eg. No real/emulated DHCP server in test environment. eg. Test with old image we don't want to change the net config. eg.

Re: [PATCH v2] MMIO: Make coalesced mmio use a device per zone

2011-12-21 Thread Amos Kong
- Original Message - > On 07/19/2011 02:05 PM, Sasha Levin wrote: > > On Tue, 2011-07-19 at 13:57 +0300, Avi Kivity wrote: > > > On 07/19/2011 01:31 PM, Sasha Levin wrote: > > > > This patch changes coalesced mmio to create one mmio device > > > > per > > > > zone instead of handling

[RFC PATCH 0/4] Network performance regression

2011-12-23 Thread Amos Kong
! --- Amos Kong (4): virt-test: add NTttcp subtests virt-test: Refactor netperf test and add analysis module netperf: pin guest vcpus/memory/vhost thread to numa node virt: Introduce regression testing infrastructure client/tests/kvm/control |7 + client/tests

[RFC PATCH 1/4] virt-test: add NTttcp subtests

2011-12-23 Thread Amos Kong
8| 399.576 We can compare it by a common method. Signed-off-by: Qingtang Zhou Signed-off-by: Amos Kong --- client/tests/kvm/subtests.cfg.sample | 21 client/virt/tests/ntttcp.py | 160 ++ 2 files changed, 181 insertions(+), 0 deletions(-) cre

[RFC PATCH 2/4] virt-test: Refactor netperf test and add analysis module

2011-12-23 Thread Amos Kong
Always use a VM as netperf server, we can use another VM/localhost/external host as the netperf clients. We setup env and launch test by executing remote ssh commands, you need to configure the IP of local/external host in configure file, VMs' IP can be got automatically. Signed-off-by: Amos

[RFC PATCH 3/4] netperf: pin guest vcpus/memory/vhost thread to numa node

2011-12-23 Thread Amos Kong
Dynamically checking hardware and pin guest cpu threads and guest memory to last numa node Signed-off-by: Amos Kong --- client/virt/tests/netperf.py | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/client/virt/tests/netperf.py b/client/virt/tests

[RFC PATCH 4/4] virt: Introduce regression testing infrastructure

2011-12-23 Thread Amos Kong
autotest server. autotest result directory should be shared by NFS first, and specify its address in perf.conf Signed-off-by: Amos Kong --- client/tests/kvm/control|7 + client/tests/kvm/perf.conf | 23 client/virt/tests/analyzer.py | 224

Re: [RFC PATCH 4/4] virt: Introduce regression testing infrastructure

2011-12-24 Thread Amos Kong
- Original Message - > Hi akong, > > see the inline comment. > > On Fri, Dec 23, 2011 at 6:28 PM, Amos Kong wrote: > > regression.py: > >  'regression' module is used to compare the test results > >  of two jobs, we can use it (regression

Re: [RFC PATCH 0/4] Network performance regression

2011-12-29 Thread Amos Kong
; > Welcome to give feedback, thanks in advance! > > --- > > Amos Kong (4): > virt-test: add NTttcp subtests > virt-test: Refactor netperf test and add analysis module > netperf: pin guest vcpus/memory/vhost thread to numa node > virt: Intro

[Autotest PATCH v2 0/4] Network performance regression

2012-01-04 Thread Amos Kong
. User can configure test time/repeat times for getting stable results. Welcome to give feedback, thanks in advance! Changes from v1: - refactor analysis module - add new features in analysis code - shape those two tests - fix some script bugs - add autoio script for ntttcp test --- Amos Kong (4):

[Autotest PATCH v2 1/4] virt-test: add NTttcp subtests

2012-01-04 Thread Amos Kong
ds sync issue - set test time to 30 seconds Signed-off-by: Qingtang Zhou Signed-off-by: Amos Kong --- client/virt/scripts/ntttcp.au3 | 41 + client/virt/subtests.cfg.sample | 22 + client/virt/tests/ntttcp.py | 183 +++ 3 files changed

[Autotest PATCH v2 2/4] virt-test: Refactor netperf test and add analysis module

2012-01-04 Thread Amos Kong
with 'standard' format at the end of test, then we can analyze them by general module. Changes from v1: - record packet bytes - enable arp_ignore - get packet info from ifconfig - shape functions - don't change ssh config Signed-off-by: Amos Kong --- client/virt/subtests.cfg.sample

[Autotest PATCH v2 3/4] netperf: pin guest vcpus/memory/vhost thread to numa node

2012-01-04 Thread Amos Kong
Dynamically checking hardware and pin guest cpu threads and guest memory to last numa node Changes from v1: - assign numanode to -1 for netperf test Signed-off-by: Amos Kong --- client/virt/subtests.cfg.sample |1 + client/virt/tests/netperf.py| 19 ++- 2 files

[Autotest PATCH v2 4/4] virt: Introduce regression testing infrastructure

2012-01-04 Thread Amos Kong
13.7| -0.3|+14.2| ... | > perf.conf: config test related parameters. It supports to compare current result with the result in autotest server. autotest result directory should be shared by NFS first, and specify its address in perf.conf Changes from v1: - refactor analysis code - add standard

Re: [PATCH] kvm-unittests: Fix apic unittest for latest qemu-kvm

2012-05-08 Thread Amos Kong
ses irq lines 14 and 15 instead in the unittest. Cc: Jan Kiszka Signed-off-by: Joerg Roedel Looks correct. Reviewed-by: Amos Kong --- x86/apic.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x86/apic.c b/x86/apic.c index 2725b9a..50e77fc 100644 --- a/

Re: [net-next RFC V5 4/5] virtio_net: multiqueue support

2012-07-05 Thread Amos Kong
On 07/05/2012 06:29 PM, Jason Wang wrote: > This patch converts virtio_net to a multi queue device. After negotiated > VIRTIO_NET_F_MULTIQUEUE feature, the virtio device has many tx/rx queue pairs, > and driver could read the number from config space. > > The driver expects the number of rx/tx que

Re: [net-next RFC V5 5/5] virtio_net: support negotiating the number of queues through ctrl vq

2012-07-05 Thread Amos Kong
On 07/05/2012 08:51 PM, Sasha Levin wrote: > On Thu, 2012-07-05 at 18:29 +0800, Jason Wang wrote: >> @@ -1387,6 +1404,10 @@ static int virtnet_probe(struct virtio_device *vdev) >> if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) >> vi->has_cvq = true; >> >> + /*

[PATCH 0/4] support to migrate with IPv6 address

2012-02-09 Thread Amos Kong
Those four patches make migration of IPv6 address work. Use getaddrinfo() to socket addresses infomation. --- Amos Kong (4): Use getaddrinfo for migration net/socket: allow ipv6 for net_socket_listen_init and socket_connect_init net: split hostname and service by last colon

[PATCH 1/4] Use getaddrinfo for migration

2012-02-09 Thread Amos Kong
This allows us to use ipv4/ipv6 for migration addresses. Once there, it also uses /etc/services names (it came free). Signed-off-by: Juan Quintela Signed-off-by: Amos Kong --- migration-tcp.c | 60 --- net.c | 108

[PATCH 2/4] net/socket: allow ipv6 for net_socket_listen_init and socket_connect_init

2012-02-09 Thread Amos Kong
Remove use of parse_host_port. More SO_SOCKADDR changes. Signed-off-by: Juan Quintela Signed-off-by: Amos Kong --- net/socket.c | 60 +++--- 1 files changed, 11 insertions(+), 49 deletions(-) diff --git a/net/socket.c b/net/socket.c index

[PATCH 3/4] net: split hostname and service by last colon

2012-02-09 Thread Amos Kong
IPv6 address contains colons, parse will be wrong. [2312::8274]:5200 Signed-off-by: Amos Kong --- net.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.c b/net.c index f63014c..9e1ef9e 100644 --- a/net.c +++ b/net.c @@ -84,7 +84,7 @@ static int get_str_sep

[PATCH 4/4] net: support to include ipv6 address by brackets

2012-02-09 Thread Amos Kong
... (qemu) migrate -d tcp:[2312::8274]:5200 Signed-off-by: Amos Kong --- net.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index 9e1ef9e..cccdb6b 100644 --- a/net.c +++ b/net.c @@ -88,6 +88,12 @@ static int get_str_sep(char *buf, int buf_size, const char

Re: [PATCH v2] MMIO: Make coalesced mmio use a device per zone

2012-02-12 Thread Amos Kong
- Original Message - > - Original Message - > > On 07/19/2011 02:05 PM, Sasha Levin wrote: > > > On Tue, 2011-07-19 at 13:57 +0300, Avi Kivity wrote: > > > > On 07/19/2011 01:31 PM, Sasha Levin wrote: > > > > > This patch changes coalesced mmio to create one mmio device > > > >

[PATCH] KVM: Increase NR_IOBUS_DEVS limit to 700

2012-02-12 Thread Amos Kong
requires 2 such devices to service notifications (ioevent) from rx/tx queues. So it needs 512 io_bus devices. The maximum of coalesced mmio zone is 100, each zone has an iobus devices. pit, pic, ioapic don't use many kvm_io_bus devices. So increase NR_IOBUS_DEVS limit to 700. Signed-off-by: Amos

[PATCH v2 0/6] Network performance regression

2012-02-13 Thread Amos Kong
This patchset adds a new network perf testcase for Windows, refactors old netperf test, and support numa resource control. Process the raw results to a standard format at the end of test. regression.py can be used to compare two job results. --- Amos Kong (6): virt: Add vhost_threads and

[PATCH v2 1/6] virt: Add vhost_threads and vcpu_threads to VM object

2012-02-13 Thread Amos Kong
Record vhost_net threads ID and vcpus threads ID to vm object after creating VM. Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index c5dba08..b2d6088 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt

[PATCH v2 2/6] virt_test_utils: Add pin_vm_threads

2012-02-13 Thread Amos Kong
This function is used to pin vhost and vcpu threads of VM to host cpu (in same numa node). Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/virt/virt_test_utils.py b/client/virt/virt_test_utils.py index 6b0d7eb..7864d2a 100644 --- a/client/virt

[PATCH v2 3/6] virt-test: add NTttcp subtests

2012-02-13 Thread Amos Kong
me buf as sender - 30 seconds is not enough, assign buf number to 2000000 Signed-off-by: Qingtang Zhou Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/virt/scripts/ntttcp.au3 b/client/virt/scripts/ntttcp.au3 new file mode 100755 index 000..004

[PATCH v2 4/6] virt-test: Refactor netperf test and add analysis module

2012-02-13 Thread Amos Kong
with 'standard' format at the end of test, then we can analyze them by general module. Changes from v1: - record packet bytes - enable arp_ignore - get packet info from ifconfig - shape functions - don't change ssh config - use server.hosts.ssh_host.SSHHost to setup ssh Signed-off-b

[PATCH v2 5/6] netperf: pin guest vcpus/memory/vhost thread to numa node

2012-02-13 Thread Amos Kong
Dynamically checking hardware and pin guest cpu threads and guest memory to last numa node Changes from v1: - assign numanode to -1 for netperf test Signed-off-by: Amos Kong --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/virt/subtests.cfg.sample b/client/virt

[PATCH v2 6/6] virt: Introduce regression testing infrastructure

2012-02-13 Thread Amos Kong
rovide mechanism to user, user can use tools directly or use the lib in scripts Signed-off-by: Amos Kong --- client/tools/analyzer.py | 166 client/tools/perf.conf | 14 client/tools/regression.py | 24 ++ 3 files changed, 20

[PATCH] KVM: Resize kvm_io_bus_range array dynamically

2012-02-28 Thread Amos Kong
. This patch makes the kvm_io_bus_range array can be resized dynamically. Signed-off-by: Amos Kong CC: Alex Williamson --- include/linux/kvm_host.h |3 +-- virt/kvm/kvm_main.c | 24 +++- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/include/linux

[PATCH v2] KVM: Resize kvm_io_range array dynamically

2012-02-28 Thread Amos Kong
. This patch makes the kvm_io_range array can be resized dynamically. Changes from v1: - fix typo: kvm_io_bus_range -> kvm_io_range Signed-off-by: Amos Kong CC: Alex Williamson --- include/linux/kvm_host.h |3 +-- virt/kvm/kvm_main.c | 24 +++- 2 files changed,

[PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
. 300 io_bus devices is not enough. This patch makes the kvm_io_range array can be resized dynamically. Changes from v1: - fix typo: kvm_io_bus_range -> kvm_io_range Changes from v2: - unregister device only when it exists Signed-off-by: Amos Kong Reviewed-by: Jason Wang CC: Alex William

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
- Original Message - > On 2012-02-29 14:30, Amos Kong wrote: > > kvm_io_bus devices are used for ioevent, pit, pic, ioapic, > > coalesced_mmio. > > > > Currently Qemu only emulates one PCI bus, it contains 32 slots, > > one slot contains 8 functions,

Re: [PATCH v3] KVM: Resize kvm_io_range array dynamically

2012-02-29 Thread Amos Kong
- Original Message - > On 2012-02-29 16:22, Amos Kong wrote: > > - Original Message - > >> On 2012-02-29 14:30, Amos Kong wrote: > >>> kvm_io_bus devices are used for ioevent, pit, pic, ioapic, > >>> coalesced_mmio. > >>> >

  1   2   3   4   >