[PATCH 1/4] KVM test: Add monotonic_time into the guest test

2010-03-22 Thread Jason Wang
Monotonic_time is used to test gettimeofday(), TSC and clock_gettime(CLOCK_MONOTONIC) which is useful to test the virutal timer device. Signed-off-by: Jason Wang jasow...@redhat.com --- .../kvm/autotest_control/monotonic_time.control| 37 client/tests/kvm

[PATCH 2/4] KVM test: Add TSC into guest test

2010-03-22 Thread Jason Wang
TSC is used to check the whether the TSC of processors are synchronized which is useful for testing virtual TSC. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/autotest_control/tsc.control | 13 + client/tests/kvm/tests_base.cfg.sample|3 +++ 2 files

[PATCH 3/4] KVM test: Add scrashme into guest test

2010-03-22 Thread Jason Wang
This patch let the scrashme run in the guest. Scrashme is one kind of fuzzing or stress test through systemcall. It should be useful in testing the VMM. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/autotest_control/scrashme.control | 14 ++ client/tests/kvm

[PATCH 4/4] KVM test: Enable timedrift for Linux guests

2010-03-22 Thread Jason Wang
We should also test timedrift for Linux guests especially for guest with pvclock. So this patch enable the timedrift for linux guests. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests_base.cfg.sample | 11 ++- 1 files changed, 10 insertions(+), 1 deletions

Re: [Autotest] [PATCH] Monotonic time test: Don't force static compilation of time_test

2010-03-23 Thread Jason Wang
Lucas Meneghel Rodrigues wrote: On Tue, Mar 23, 2010 at 3:25 PM, Martin Bligh mbl...@google.com wrote: +cc:md (he wrote the test). On Tue, Mar 23, 2010 at 11:13 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: The Makefile for the monotonic_test C program forces static compilation

Re: [Autotest] [PATCH 4/4] KVM test: Enable timedrift for Linux guests

2010-03-23 Thread Jason Wang
Michael Goldish wrote: - Jason Wang jasow...@redhat.com wrote: We should also test timedrift for Linux guests especially for guest with pvclock. So this patch enable the timedrift for linux guests. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm

Re: [Autotest] [PATCH 2/4] KVM test: Add TSC into guest test

2010-03-23 Thread Jason Wang
Lucas Meneghel Rodrigues wrote: On Mon, Mar 22, 2010 at 4:45 AM, Jason Wang jasow...@redhat.com wrote: TSC is used to check the whether the TSC of processors are synchronized which is useful for testing virtual TSC. The only thing that needs to be corrected here is that this test

[PATCH v2] KVM test: Enable timedrift for Linux guests

2010-03-24 Thread Jason Wang
-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests_base.cfg.sample | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 8cc83a9..29a2430 100644 --- a/client/tests/kvm

Re: [Autotest] [PATCH 2/4] KVM test: Add TSC into guest test

2010-03-25 Thread Jason Wang
Lucas Meneghel Rodrigues wrote: On Wed, Mar 24, 2010 at 2:59 AM, Jason Wang jasow...@redhat.com wrote: Lucas Meneghel Rodrigues wrote: On Mon, Mar 22, 2010 at 4:45 AM, Jason Wang jasow...@redhat.com wrote: TSC is used to check the whether the TSC of processors are synchronized

[PATCH 1/2] KVM test: Make the profiler could be configurated

2010-03-30 Thread Jason Wang
The patch let the profilers could be specified through configuration file. kvm_stat was kept as the default profiler. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py | 23 ++- client/tests/kvm/tests_base.cfg.sample |2 +- 2 files

[PATCH 2/2] KVM test: Add the hwclock test into guest test

2010-03-30 Thread Jason Wang
Hwclock is useful to do the basic testing of emulated RTC. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/autotest_control/hwclock.control | 12 client/tests/kvm/tests_base.cfg.sample|3 +++ 2 files changed, 15 insertions(+), 0 deletions

Re: [PATCH 1/2] KVM test: Make the profiler could be configurated

2010-03-31 Thread Jason Wang
Michael Goldish wrote: - Jason Wang jasow...@redhat.com wrote: The patch let the profilers could be specified through configuration file. kvm_stat was kept as the default profiler. Looks good. Some minor style comments: Thanks for the comment, would re-send the patch

[PATCH v2] KVM test: Make the profiler could be configurated

2010-03-31 Thread Jason Wang
The patch let the profilers could be specified through configuration file. kvm_stat was kept as the default profiler. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py | 21 - client/tests/kvm/tests_base.cfg.sample |2 +- 2 files

[PATCH] KVM test: Add a subtest iofuzz

2010-04-07 Thread Jason Wang
between host and guest. Through this method may slow down the whole test but it works well. The enumeration was done through /proc/ioports and the scenario of avtivity is not aggressive. Suggestions are welcomed. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests/iofuzz.py

[PATCH 0/9] Make use of the redirection of guest serial

2010-04-26 Thread Jason Wang
the guest serial to unix domain socket and then could log the guest serial through a thread or make it as a method of session. The last patch makes all linux guests to use serial as their consoles through unattended files. --- Jason Wang (9): KVM test: Introduce the prompt assist KVM test

[PATCH 1/9] KVM test: Introduce the prompt assist

2010-04-26 Thread Jason Wang
Sometimes we need to send an assist string to a session in order to get the prompt especially when re-connecting to an already logged serial session. This patch send the assist string before doing the pattern matching of remote_login. Signed-off-by: Jason Wang jasow...@redhat.com --- client

[PATCH 2/9] KVM test: Add the ability to send the username in remote_login()

2010-04-26 Thread Jason Wang
In order to let the serial console work, we must let the remote_login() send the username when needed. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/client/tests/kvm

[PATCH 3/9] KVM test: Make the login re suitable for serial console

2010-04-26 Thread Jason Wang
Current matching re ^\s*[Ll]ogin:\s*$ is not suitable for the serial console, so change it to [Ll]ogin:. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b

[PATCH 4/9] KVM test: Redirect the serial to the unix domain socket

2010-04-26 Thread Jason Wang
This patch redirect the guest serial to the unix domain socket which would be used by the following patches to dump its content or use it as a session. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py | 19 --- 1 files changed, 12 insertions(+), 7

[PATCH 5/9] KVM test: Log the content from guest serial console

2010-04-26 Thread Jason Wang
-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_preprocessing.py | 59 +++- client/tests/kvm/tests_base.cfg.sample |1 + 2 files changed, 59 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm

[PATCH 6/9] KVM test: Raise error when met unknown type in kvm_vm.remote_login().

2010-04-26 Thread Jason Wang
Need to raise the error when met the unknown type of shell_client in kvm_vm.remote_login() in order to avoid the traceback. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm

[PATCH 7/9] KVM test: Introduce the local_login()

2010-04-26 Thread Jason Wang
This patch introduces a new method which is used to log into the guest through the guest serial console. The serial_mode must be set to session in order to make use of this patch. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py | 25 + 1

[PATCH 8/9] KVM test: Create the background threads before calling process()

2010-04-26 Thread Jason Wang
If the screendump and scrialdump threads are created after the process(), we may lose the progress tracking of guest shutting down. So this patch creates them before calling process() in preprocess. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_preprocessing.py |5

[PATCH 9/9] KVM test: Redirect the console to serial for all linux guests

2010-04-26 Thread Jason Wang
As we have the ability to dump the content from serial console or use a session through it, we need to redirect the console to serial through unattended files to make use of it. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/unattended/Fedora-10.ks |2 +- client/tests

[PATCH 1/3] KVM test: Use customized command to get the version of kvm and its

2010-04-26 Thread Jason Wang
userspace Current method may or may not work for various kinds of distribution. So this patch enable the ability to use customized commands to get the version of kvm and its userspace. kvm_ver_cmd is used for kvm verison and kvm_userspace_ver_cmd is for its userspace. Signed-off-by: Jason Wang

[PATCH 2/3] KVM test: Create ksm scanner through pre_command

2010-04-26 Thread Jason Wang
KSM may have various control interface for different distributions,so this patch launch ksm through pre_command instead of the hard-coded bits in the test. User may specify their owner suitable commands or paramteres. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests

[PATCH 3/3] KVM test: Remove the duplicated KERNEL paramters in the pxe configuration file

2010-04-26 Thread Jason Wang
Remove the duplicated KERNEL vmlinuz in unattended.py Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/scripts/unattended.py |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/scripts/unattended.py b/client/tests/kvm/scripts/unattended.py

[PATCH] KVM test: Add the missing blank for the extra params of balloon check

2010-04-27 Thread Jason Wang
Add the missing blank for the extra params of balloon check in order to get the correct qemu-kvm command line. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests_base.cfg.sample |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm

Re: [PATCH 1/9] KVM test: Introduce the prompt assist

2010-05-05 Thread Jason Wang
Michael Goldish wrote: On 04/26/2010 01:03 PM, Jason Wang wrote: Sometimes we need to send an assist string to a session in order to get the prompt especially when re-connecting to an already logged serial session. This patch send the assist string before doing the pattern matching

Re: [PATCH 3/9] KVM test: Make the login re suitable for serial console

2010-05-05 Thread Jason Wang
Michael Goldish wrote: On 04/26/2010 01:03 PM, Jason Wang wrote: Current matching re ^\s*[Ll]ogin:\s*$ is not suitable for the serial console, so change it to [Ll]ogin:. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py |2 +- 1 files changed, 1 insertions

Re: [PATCH 5/9] KVM test: Log the content from guest serial console

2010-05-05 Thread Jason Wang
Michael Goldish wrote: On 04/26/2010 01:04 PM, Jason Wang wrote: This patch tries to get the content of guest serial and log it into the debug directoy of the testcase through a dedicated thread which is created in the preprocessing and ended in the postprocessing. The params of serial_mode

Re: [PATCH 7/9] KVM test: Introduce the local_login()

2010-05-05 Thread Jason Wang
Michael Goldish wrote: On 04/26/2010 01:04 PM, Jason Wang wrote: This patch introduces a new method which is used to log into the guest through the guest serial console. The serial_mode must be set to session in order to make use of this patch. In what cases would we want to use

Re: [PATCH 9/9] KVM test: Redirect the console to serial for all linux guests

2010-05-05 Thread Jason Wang
Michael Goldish wrote: On 04/26/2010 01:04 PM, Jason Wang wrote: As we have the ability to dump the content from serial console or use a session through it, we need to redirect the console to serial through unattended files to make use of it. Signed-off-by: Jason Wang jasow...@redhat.com

Re: [Autotest] [PATCH 1/3] KVM test: Use customized command to get the version of kvm and its

2010-05-07 Thread Jason Wang
- Lucas Meneghel Rodrigues l...@redhat.com wrote: On Fri, 2010-05-07 at 18:10 +0800, Jason Wang wrote: Lucas Meneghel Rodrigues wrote: On Mon, Apr 26, 2010 at 7:07 AM, Jason Wang jasow...@redhat.com wrote: userspace Current method may or may not work for various kinds

[PATCH v2 00/10] Redirct and make use of the guest serial console

2010-05-11 Thread Jason Wang
installation - Add a helper to check whether the panic information was occured - Keep the porcess() at its original location in preprocess() --- Jason Wang (10): KVM test: Introduce prompt assist KVM test: Send the username in remote_login() KVM test: Make the login re suitable

[PATCH v2 01/10] KVM test: Introduce prompt assist

2010-05-11 Thread Jason Wang
We need to send an assist string to a session in order to get the prompt when re-connecting to session through serial. This patch sends assist string before matching the prompt in remote_login(). Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py |9 +++-- 1

[PATCH v2 02/10] KVM test: Send the username in remote_login()

2010-05-11 Thread Jason Wang
In order to let the serial console work, we must let the remote_login() send the username when met the username prompt. This patch fails the progress if if it met the username prompt twice. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py | 23

[PATCH v2 03/10] KVM test: Make the login re suitable for serial console

2010-05-11 Thread Jason Wang
Current matching re ^\s*[Ll]ogin:\s*$ is not suitable for the serial console, so change it to [Ll]ogin:\s*$. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_utils.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py b

[PATCH v2 04/10] KVM test: Redirect the serial to the unix domain socket

2010-05-11 Thread Jason Wang
This patch redirect the guest serial to the unix domain socket which would be used by the following patches to dump its content or use it as a session. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py | 19 --- 1 files changed, 12 insertions(+), 7

[PATCH v2 05/10] KVM test: Log the content from guest serial console

2010-05-11 Thread Jason Wang
-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_preprocessing.py | 59 +++- client/tests/kvm/tests_base.cfg.sample |1 + 2 files changed, 59 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm

[PATCH v2 06/10] KVM test: Return none when met unknown type in kvm_vm.remote_login().

2010-05-11 Thread Jason Wang
None is returned when met the unknown type of shell_client in kvm_vm.remote_login() in order to avoid the traceback. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm

[PATCH v2 07/10] KVM test: Introduce local_login()

2010-05-11 Thread Jason Wang
. But it would be useful for the network related test which may cause the network unresponsive such as driver load/unload or some kinds of network stress testing. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py | 25 + 1 files changed, 25 insertions

[PATCH v2 08/10] KVM test: Enable the serial console for all linux guests

2010-05-11 Thread Jason Wang
As we have the ability to dump the content from serial console or use a session through it, we need to redirect the console to serial through unattended files to make use of it. The patch also keep the tty0 accroding to the suggestion of Michael Goldish. Signed-off-by: Jason Wang jasow

[PATCH v2 09/10] KVM test: Enable the serial console during unattended installation

2010-05-11 Thread Jason Wang
This patch enable the serial console during unattended installation for all linux guests. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests_base.cfg.sample |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/tests/kvm

[PATCH v2 10/10] KVM test: Add a helper to search the panic in the log

2010-05-11 Thread Jason Wang
This checker serves as the post_command to find the panic information in the file which contains the content of guest serial console. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/scripts/check_serial.py | 41 ++ client/tests/kvm

[PATCH 1/2] Adding rtctest as client test

2010-05-17 Thread Jason Wang
This new autotest module implements a simple test for the driver of realtime clock. It do the testing of interrupt, date reading, alarm and frequency. Please refer the Documentation/rtc.txt for details. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/rtc/src/Makefile | 19

[PATCH 2/2] KVM test: Add rtc into the guest test

2010-05-17 Thread Jason Wang
rtc test is a test for rtc driver which could also be useful for testing the rtc emulation in kvm. Signed-off-by: Jason Wang jasow...@redhat.com --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/autotest_control/rtc.control b/client/tests/kvm/autotest_control

[v3 PATCH] KVM test: Add a helper to search the panic in the log

2010-05-19 Thread Jason Wang
This checker serves as the post_command to find the panic information in the file which contains the content of guest serial console. Changes from v2: - Put all things into __main__ - Fix some typos Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/scripts/check_serial.py

[PATCH 1/3] KVM test: Add the support of kernel and initrd option for qemu-kvm

2010-05-19 Thread Jason Wang
-kernel option is useful for both unattended installation and the unittest in /kvm/user/test. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests

[PATCH 2/3] KVM test: Do not use the hard-coded address during unattended installation

2010-05-19 Thread Jason Wang
When we do the unattended installation in tap mode, we should use vm.get_address() instead of the 'localhost' in order the connect to the finish program running in the guest. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests/unattended_install.py | 25

[PATCH 3/3] KVM test: Add implementation of network based unattended installation

2010-05-19 Thread Jason Wang
from cdrom. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/scripts/unattended.py | 103 +- client/tests/kvm/tests_base.cfg.sample |1 client/tests/kvm/unattended/Fedora-10.ks |2 - client/tests/kvm/unattended/Fedora-11.ks

Re: [Autotest] [v3 PATCH] KVM test: Add a helper to search the panic in the log

2010-05-24 Thread Jason Wang
Michael Goldish wrote: On 05/19/2010 12:13 PM, Jason Wang wrote: This checker serves as the post_command to find the panic information in the file which contains the content of guest serial console. Changes from v2: - Put all things into __main__ - Fix some typos Signed-off-by: Jason

Re: [PATCH v2 00/10] Redirct and make use of the guest serial console

2010-05-28 Thread Jason Wang
Lucas Meneghel Rodrigues wrote: On Tue, 2010-05-11 at 17:03 +0800, Jason Wang wrote: The guest console is useful for failure troubleshooting especially for the one who has calltrace. And as we plan to push the network related test in the next few weeks, we found the serial session in more

Re: [PATCH 2/3] KVM test: Do not use the hard-coded address during unattended installation

2010-05-28 Thread Jason Wang
Lucas Meneghel Rodrigues wrote: On Wed, 2010-05-19 at 17:20 +0800, Jason Wang wrote: When we do the unattended installation in tap mode, we should use vm.get_address() instead of the 'localhost' in order the connect to the finish program running in the guest. Signed-off-by: Jason Wang

[PATCH 1/3] KVM test: Add the support of kernel and initrd option for qemu-kvm

2010-05-28 Thread Jason Wang
-kernel option is useful for both unattended installation and the unittest in /kvm/user/test. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests

[PATCH 2/3] KVM test: Do not use the hard-coded address during unattended installation

2010-05-28 Thread Jason Wang
When we do the unattended installation in tap mode, we should use vm.get_address() instead of the 'localhost' in order the connect to the finish program running in the guest. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests/unattended_install.py | 25

[PATCH 3/3] KVM test: Add implementation of network based unattended installation

2010-05-28 Thread Jason Wang
the unattended files for RHEL and Fedora gues ts are modified, others are kept unmodified and could do the installation from cdrom. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/scripts/unattended.py | 107 +++- client/tests/kvm/tests_base.cfg.sample

[PATCH] KVM test: Measure the timedrift after continuing a stopped vm

2010-05-28 Thread Jason Wang
This test extends the timedifrt test and measures the timedirft across the vm stopping and continuing. Two helpers function are also added in kvm_test_utils to do the stop and continue. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests/timedrift_with_stop.py | 97

Re: [Autotest PATCH] KVM test: Fixup memory size shown in 'GB' in get_memory_size

2009-12-25 Thread Jason Wang
Applied, thanks In guest RHEL-3.9 $mem_chk_cmd will catch memory size in GB which will be computed wrongly in get_memory_size. This patch fix the problem. Thanks akong for pointing this out. Signed-off-by: Yolkfull Chow yz...@redhat.com --- client/tests/kvm/kvm_vm.py |6 +- 1

Re: [Autotest] [Autotest PATCH] KVM test: Fixup memory size shown in 'GB' in get_memory_size

2009-12-25 Thread Jason Wang
Sorry for the noise, please ignore this mail. Applied, thanks In guest RHEL-3.9 $mem_chk_cmd will catch memory size in GB which will be computed wrongly in get_memory_size. This patch fix the problem. Thanks akong for pointing this out. Signed-off-by: Yolkfull Chow yz...@redhat.com ---

[PATCH] KVM test: Create a verify_kernel_crash() VM method

2011-03-01 Thread Jason Wang
Lucas Meneghel Rodrigues writes: A method to verify guest kernel panics can be very useful for a number of tests. Adapted from a function present on virtio_console test, create VM.verify_kernel_crash() and use it on unattended_install. How about using a thread to monitor the serial

[RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-20 Thread Jason Wang
a multiqueue virtio-net device through: ./qemu-system-x86_64 -netdev tap,id=hn0,vhost=on,fd=X -netdev tap,id=hn0,vhost=on,fd=Y -device virtio-net-pci,netdev=hn0#hn1,queues=2 ... The series is very primitive and still need polished. Suggestions are welcomed. --- Jason Wang (2): net: Add

[RFC PATCH 1/2] net: Add multiqueue support

2011-04-20 Thread Jason Wang
. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/qdev-properties.c | 37 ++--- hw/qdev.h|3 ++- net.c| 34 ++ net.h| 15 +++ 4 files changed, 69 insertions(+), 20

[RFC PATCH 2/2] virtio-net: add multiqueue support

2011-04-20 Thread Jason Wang
This patch add the multiqueue ability to virtio-net for both userapce and vhost. With this patch the kernel side vhost could be reused without modification to support multiqueue virtio-net nics. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/vhost.c | 26 ++- hw/vhost.h |1

Re: [PATCH 03/17] Unify vendor TSC logic

2010-06-16 Thread Jason Wang
Zachary Amsden wrote: Move the TSC control logic from the vendor backends into x86.c by adding adjust_tsc_offset to x86 ops. Now all TSC decisions can be done in one place. Also, rename some variable in the VCPU structure to more accurately reflect their actual content. VMX backend would

Re: [PATCH 04/17] Fix deep C-state TSC desynchronization

2010-06-16 Thread Jason Wang
Zachary Amsden wrote: When CPUs with unstable TSCs enter deep C-state, TSC may stop running. This causes us to require resynchronization. Since we can't tell when this may potentially happen, we assume the worst by forcing re-compensation for it at every point the VCPU task is descheduled.

Re: [PATCH 05/17] Keep SMP VMs more in sync on unstable TSC

2010-06-16 Thread Jason Wang
Zachary Amsden wrote: SMP VMs on machines with unstable TSC have their TSC offset adjusted by the local offset delta from last measurement. This does not take into account how long it has been since the measurement, leading to drift. Minimize the drift by accounting for any time difference

Re: [PATCH 11/17] Fix a possible backwards warp of kvmclock

2010-06-16 Thread Jason Wang
Zachary Amsden wrote: Kernel time, which advances in discrete steps may progress much slower than TSC. As a result, when kvmclock is adjusted to a new base, the apparent time to the guest, which runs at a much higher, nsec scaled rate based on the current TSC, may have already been observed

Re: [PATCH 12/17] Add helper function get_kernel_ns

2010-06-16 Thread Jason Wang
Zachary Amsden wrote: On 06/14/2010 10:41 PM, Avi Kivity wrote: On 06/15/2010 10:34 AM, Zachary Amsden wrote: Add a helper function for the multiple places this is used. Note that it must not be called in preemptible context, as that would mean the kernel could enter software

[PATCH] KVM: Fix typos in Documentation/kvm/mmu.txt

2010-06-16 Thread Jason Wang
Signed-off-by: Jason Wang jasow...@redhat.com --- Documentation/kvm/mmu.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/kvm/mmu.txt b/Documentation/kvm/mmu.txt index 8cb42b9..5d3343f 100644 --- a/Documentation/kvm/mmu.txt +++ b/Documentation/kvm

Re: [PATCH 03/17] Unify vendor TSC logic

2010-06-17 Thread Jason Wang
Glauber Costa wrote: On Wed, Jun 16, 2010 at 04:10:10PM +0800, Jason Wang wrote: Zachary Amsden wrote: void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) { + kvm_x86_ops-vcpu_load(vcpu, cpu); if (unlikely(vcpu-cpu != cpu)) { + /* Make sure TSC doesn't go

Re: [PATCH 03/17] Unify vendor TSC logic

2010-06-17 Thread Jason Wang
Zachary Amsden wrote: On 06/15/2010 10:10 PM, Jason Wang wrote: Zachary Amsden wrote: Move the TSC control logic from the vendor backends into x86.c by adding adjust_tsc_offset to x86 ops. Now all TSC decisions can be done in one place. Also, rename some variable in the VCPU

Re: [PATCH] KVM: Fix typos in Documentation/kvm/mmu.txt

2010-06-17 Thread Jason Wang
Avi Kivity wrote: On 06/17/2010 08:32 AM, Jason Wang wrote: Signed-off-by: Jason Wangjasow...@redhat.com --- Documentation/kvm/mmu.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/kvm/mmu.txt b/Documentation/kvm/mmu.txt index 8cb42b9

[PATCH v2] KVM: Fix typos in Documentation/kvm/mmu.txt

2010-06-17 Thread Jason Wang
Signed-off-by: Jason Wang jasow...@redhat.com --- Documentation/kvm/mmu.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/kvm/mmu.txt b/Documentation/kvm/mmu.txt index 8cb42b9..142cc51 100644 --- a/Documentation/kvm/mmu.txt +++ b/Documentation/kvm

[PATCH 1/3] test: Drop print.S

2010-07-25 Thread Jason Wang
We have already had lib/printf.c. Signed-off-by: Jason Wang jasow...@redhat.com --- kvm/test/x86/print.S | 31 --- 1 files changed, 0 insertions(+), 31 deletions(-) delete mode 100644 kvm/test/x86/print.S diff --git a/kvm/test/config-x86-common.mak b/kvm/test

[PATCH 2/3] test: Add kvmclock driver

2010-07-25 Thread Jason Wang
This patch add a kvmclock driver for unittest. A special bit: PV_CLOCK_CYCLE_RAW_TEST_BIT is used to notify the driver to return just the raw cycle supplied by the hypervisor. Signed-off-by: Jason Wang jasow...@redhat.com --- kvm/test/x86/kvmclock.c | 206

[PATCH 3/3] test: Add test for kvmclock

2010-07-25 Thread Jason Wang
provide monotonic cycles. Signed-off-by: Jason Wang jasow...@redhat.com --- kvm/test/x86/kvmclock_test.c | 128 ++ kvm/test/x86/unittests.cfg |4 + 2 files changed, 132 insertions(+), 0 deletions(-) create mode 100644 kvm/test/x86/kvmclock_test.c diff

[PATCH 1/2] Export the symbol of getboottime and monotonic_to_bootbased

2010-01-27 Thread Jason Wang
Export getboottime and monotonic_to_bootbased in order to let them could be used by following patch. Signed-off-by: Jason Wang jasow...@redhat.com --- kernel/time/timekeeping.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time

[PATCH 2/2] kvmclock: count total_sleep_time when updating guest clock

2010-01-27 Thread Jason Wang
Current kvm wallclock does not consider the total_sleep_time which could cause wrong wallclock in guest after host suspend/resume. This patch solve this issue by counting total_sleep_time to get the correct host boot time. Signed-off-by: Jason Wang jasow...@redhat.com --- arch/x86/kvm/x86.c

Re: KVM: PIT: control word is write-only

2010-02-01 Thread Jason Wang
Marcelo Tosatti wrote: PIT control word (address 0x43) is write-only, reads are undefined. Cc: sta...@kernel.org Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Acked-by: Jason Wang jasow...@redhat.com -- To unsubscribe from this list: send the line unsubscribe kvm in the body

[RESEND PATCH] virtio-net: init link state correctly

2010-11-05 Thread Jason Wang
not support VIRITO_NET_F_STATUS, we could not get its status through virtnet_update_status() and what we can only do is always assuming the link is up. Acked-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/net/virtio_net.c | 12 +--- 1 files

[PATCH] KVM test: Minor enhancement for kdump

2010-11-17 Thread Jason Wang
Make the crash kerenl prob command could be configurated. Use carshkernel=128M instead of crashkerenl=1...@64m. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests/kdump.py| 10 ++ client/tests/kvm/tests_base.cfg.sample |4 +++- 2 files changed, 9

[PATCH 1/2] KVM test: Support params for netdev

2010-11-17 Thread Jason Wang
Qemu-kvm can config the netdev through its command line parameters, this patch add the support for it and user could use pass params like sndbuf to qemu through netdev_extra_params in config file. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/kvm_vm.py |8 1

[PATCH 2/2] KVM test: Let vhost use netdev_extra_params

2010-11-17 Thread Jason Wang
As we have a more generic support for netdev configuration, this patch enable the vhost through netdev_extra_params. Signed-off-by: Jason Wang jasow...@redhat.com --- client/tests/kvm/tests_base.cfg.sample |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client

[RFC PATCH] KVM test: Introduce a command-line wrapper

2010-11-17 Thread Jason Wang
This patch adds a command line wrapper in order make it easier to let user to run dedicated tests with specified params. The idea is simple: user specifiy the test params through commnad line, then wrapper modifiy the configuration file automatically. This is possible as the variants limitations

[PATCH] vhost: correctly set bits of dirty pages

2010-11-28 Thread Jason Wang
When counting pages we should increase it by 1 instead of VHOST_PAGE_SIZE, and also make log_write() can correctly process the request across pages with write_address not start at page boundary. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/vhost.c | 20

[PATCH] vhost: fix typos in comment

2010-11-28 Thread Jason Wang
Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/net.c |2 +- drivers/vhost/vhost.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index d10da28..14fc189 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost

Re: [PATCH] vhost: correctly set bits of dirty pages

2010-11-29 Thread Jason Wang
Michael S. Tsirkin writes: On Mon, Nov 29, 2010 at 01:48:20PM +0800, Jason Wang wrote: When counting pages we should increase it by 1 instead of VHOST_PAGE_SIZE, and also make log_write() can correctly process the request across pages with write_address not start at page boundary

[PATCH] kvm: x86: Save/restore error_code

2010-12-09 Thread Jason Wang
The saving and restoring of error_code seems lost and convert the error_code to uint32_t. Signed-off-by: Jason Wang jasow...@redhat.com --- target-i386/cpu.h |4 ++-- target-i386/machine.c |2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.h b

Re: [PATCH] kvm: x86: Save/restore error_code

2010-12-09 Thread Jason Wang
Juan Quintela writes: Jason Wang jasow...@redhat.com wrote: The saving and restoring of error_code seems lost and convert the error_code to uint32_t. Signed-off-by: Jason Wang jasow...@redhat.com --- target-i386/cpu.h |4 ++-- target-i386/machine.c |2 ++ 2

Re: [PATCH] kvm: x86: Save/restore error_code

2010-12-10 Thread Jason Wang
Juan Quintela writes: Jason Wang jasow...@redhat.com wrote: Juan Quintela writes: Jason Wang jasow...@redhat.com wrote: The saving and restoring of error_code seems lost and convert the error_code to uint32_t. Signed-off-by: Jason Wang jasow...@redhat.com

[Autotest] [KVM-AUTOTEST PATCH 03/28] KVM test: corrections to migration_with_reboot

2010-12-28 Thread Jason Wang
Michael Goldish writes: - Use wait_for() to try remote_login() multiple times before giving up. - Take VM parameters from vm.params, not params. Is there any differnce between those in current context? Other looks good, thanks. Signed-off-by: Michael Goldish mgold...@redhat.com ---

[Autotest] [KVM-AUTOTEST PATCH 04/28] KVM test: migration_with_reboot: use kvm_utils.Thread

2010-12-28 Thread Jason Wang
Michael Goldish writes: Signed-off-by: Michael Goldish mgold...@redhat.com Looks good, thanks! --- client/tests/kvm/tests/migration_with_reboot.py | 19 +++ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git

[Autotest] [KVM-AUTOTEST PATCH v2] KVM test: migration_with_file_transfer: verify transfer correctness

2010-12-28 Thread Jason Wang
Michael Goldish writes: After the transfer, copy the file back from the guest to the host and make sure the returned file is identical to the one sent to the guest. Changes from v1: - hash_file() is in autotest_lib.client.bin.utils, so import that as client_utils. - Pass

[Autotest] [KVM-AUTOTEST PATCH 11/28] KVM test: make_qemu_command(): catch IndexError when accessing self.netdev_id

2010-12-28 Thread Jason Wang
Michael Goldish writes: make_qemu_command() is sometimes called to see if a VM needs to be restarted using a different qemu command line. When it's called with more NICs than the VM currently has, accessing self.netdev_id can raise an IndexError. Signed-off-by: Michael Goldish

Re: [Autotest] [KVM-AUTOTEST PATCH v2] KVM test: migration_with_file_transfer: verify transfer correctness

2010-12-28 Thread Jason Wang
Michael Goldish writes: On 12/28/2010 02:38 PM, Jason Wang wrote: Michael Goldish writes: After the transfer, copy the file back from the guest to the host and make sure the returned file is identical to the one sent to the guest. Changes from v1: - hash_file

[PATCH 1/3] vhost-net: check the support of mergeable buffer outside the receive loop

2011-01-17 Thread Jason Wang
No need to check the support of mergeable buffer inside the recevie loop as the whole handle_rx()_xx is in the read critical region. So this patch move it ahead of the receiving loop. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/net.c |5 +++-- 1 files changed, 3

[PATCH 2/3] vhost-net: Unify the code of mergeable and big buffer handling

2011-01-17 Thread Jason Wang
buffers, the quota is just 1), and then the previous handle_rx_mergeable() could be resued also for big buffers. Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/net.c | 128 +++ 1 files changed, 7 insertions(+), 121 deletions

[PATCH 3/3] vhost-net: use lock_sock_fast() in peek_head_len()

2011-01-17 Thread Jason Wang
We can use lock_sock_fast() instead of lock_sock() in order to get speedup in peek_head_len(). Signed-off-by: Jason Wang jasow...@redhat.com --- drivers/vhost/net.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index c32a2e4

Re: [PATCH 2/3] vhost-net: Unify the code of mergeable and big buffer handling

2011-01-17 Thread Jason Wang
Michael S. Tsirkin writes: On Mon, Jan 17, 2011 at 04:11:08PM +0800, Jason Wang wrote: Codes duplication were found between the handling of mergeable and big buffers, so this patch tries to unify them. This could be easily done by adding a quota to the get_rx_bufs() which is used

  1   2   3   4   5   6   7   8   >