Test vhost-net !!

2011-04-07 Thread Onkar Mahajan
Hi ,    How do I test if vhost-net is actually enabled and working ? Regards, Onkar -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Jan Kiszka
On 2011-04-06 21:34, Anthony Liguori wrote: On 04/06/2011 02:27 PM, Peter Maydell wrote: Right, but honestly speaking, I don't know how this works for other arches. So, the best thing to do is to have a general design that can be used by any architecture. Of course that we can also add a new

Re: Test vhost-net !!

2011-04-07 Thread Jean-Philippe Menil
Le 07/04/2011 09:18, Onkar Mahajan a écrit : Hi , How do I test if vhost-net is actually enabled and working ? Regards, Onkar -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 1/3] kvm tools: define marcros for virtio device io space size and pci device number

2011-04-07 Thread Avi Kivity
On 04/07/2011 07:40 AM, Pekka Enberg wrote: On Thu, Apr 7, 2011 at 6:56 AM, David Aherndsah...@gmail.com wrote: Interesting overload of the kvm mailing list. Intended for changes to the 'native kvm' (ie., tools/kvm)? Yup, we're starting to use kvm@ for our patches and discussion as

Re: [PATCH v2 2/2] rbd: allow configuration of rados from the rbd filename

2011-04-07 Thread Stefan Hajnoczi
On Thu, Apr 07, 2011 at 10:14:03AM +0900, Yoshiaki Tamura wrote: 2011/3/29 Josh Durgin josh.dur...@dreamhost.com: The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may be any Ceph option, or conf. The conf

Re: [PATCH v2 2/2] rbd: allow configuration of rados from the rbd filename

2011-04-07 Thread Yoshiaki Tamura
2011/4/7 Stefan Hajnoczi stefa...@gmail.com: On Thu, Apr 07, 2011 at 10:14:03AM +0900, Yoshiaki Tamura wrote: 2011/3/29 Josh Durgin josh.dur...@dreamhost.com: The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may

Re: [Qemu-devel] KVM call minutes for Apr 5

2011-04-07 Thread Stefan Hajnoczi
On Tue, Apr 5, 2011 at 6:37 PM, Lucas Meneghel Rodrigues l...@redhat.com wrote: Thanks for your detailed response! On Tue, 2011-04-05 at 16:29 +0100, Stefan Hajnoczi wrote: * Public notifications of breakage, qemu.git/master failures to qemu-devel mailing list. ^ The challenge is to get

[GIT PULL] KVM updates for 2.6.39-rc2

2011-04-07 Thread Avi Kivity
Linus, please pull from the repo/branch at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/2.6.39 to receive a fix for virtualized cpuid and a host irqfd oops, as well as a patch that enables asynchronous page faults, which was merged in 2.6.38 but not enabled. Andre Przywara

[PATCH 1/6] kvm tools: define marcros for virtio device io space size and pci device number

2011-04-07 Thread Asias He
Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/blk-virtio.c |6 -- tools/kvm/include/kvm/ioport.h |7 +-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/kvm/blk-virtio.c b/tools/kvm/blk-virtio.c index 48211b5..9a723cc 100644 ---

[PATCH 2/6] kvm tools: add some helper functions for virt_queue

2011-04-07 Thread Asias He
Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/include/kvm/virtqueue.h | 42 + 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/tools/kvm/include/kvm/virtqueue.h b/tools/kvm/include/kvm/virtqueue.h index 83f5293..de360ae 100644

[PATCH 3/6] kvm tools: move terminal related code to a new file term.c

2011-04-07 Thread Asias He
preparing the virtio console and 8250 serial console consolidation Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/Makefile |1 + tools/kvm/include/kvm/term.h | 17 tools/kvm/main.c | 35 +--- tools/kvm/term.c | 89

[PATCH 4/6] kvm tools: make 8250 serial use infrastructure provided by term.c

2011-04-07 Thread Asias He
Signed-off-by: Asias He asias.he...@gmail.com --- tools/kvm/8250-serial.c | 40 ++ tools/kvm/include/kvm/8250-serial.h |2 +- tools/kvm/main.c|2 +- 3 files changed, 9 insertions(+), 35 deletions(-) diff --git

[PATCH 5/6] kvm tools: add virtio console support v2

2011-04-07 Thread Asias He
- consolidate all console related code to term.c - use timer based approach instead of thread to deal with user input NOTE: Please add something like this: T2:23:respawn:/sbin/getty -L hvc0 9600 vt100 to your /etc/inittab file to get a virtio console login. Signed-off-by: Asias He

[PATCH 6/6] kvm tools: introduce --enable-virtio-console option

2011-04-07 Thread Asias He
This option enables virtio console and disables serial console. At this time, the virtio and serial console can not work simultaneously. Becasue we can not put both console's output to user at the same time. However, once we redirect the virtio console to a pipe or socket. We can use both console

Re: [PATCH 3/3] kvm tools: add virtio console support v2

2011-04-07 Thread Asias He
On 04/07/2011 01:50 PM, Pekka Enberg wrote: Hi Asias, On 4/8/11 5:05 AM, Asias He wrote: - Consolidate all console related code to term.c - Use timer based approach instead of thread to deal with user input - Introduce --enable-virtio-console option, this option disables serial console

Re: [PATCH v2 2/2] rbd: allow configuration of rados from the rbd filename

2011-04-07 Thread Yehuda Sadeh Weinraub
On Thu, Apr 7, 2011 at 2:54 AM, Yoshiaki Tamura tamura.yoshi...@gmail.com wrote: 2011/4/7 Stefan Hajnoczi stefa...@gmail.com: On Thu, Apr 07, 2011 at 10:14:03AM +0900, Yoshiaki Tamura wrote: 2011/3/29 Josh Durgin josh.dur...@dreamhost.com: The new format is

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Peter Maydell
On 6 April 2011 20:34, Anthony Liguori anth...@codemonkey.ws wrote: http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaai/crashdump/liaaicrashdumpnmiipmi.htm If an OS is totally hosed (spinning with interrupts disabled), and NMI can be used to generate a crash dump.

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Anthony Liguori
On 04/07/2011 01:18 PM, Jordan Justen wrote: On Thu, Apr 7, 2011 at 09:08, Anthony Liguorianth...@codemonkey.ws wrote: On 04/07/2011 10:51 AM, Gleb Natapov wrote: That may seams to be impossible but it is how HW works. And this is how QEMU emulates it. Look at target-i386/helper.c:cpu_reset()

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 01:37:14PM -0500, Anthony Liguori wrote: The CS base starts out at 0xf and IP is 0xfff0. That gives a real address of 0x0. This is usually a trampoline to somewhere else in the space. CS descriptor and CS selector don't have to be in sync (big real mode).

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 01:32:50PM -0500, Anthony Liguori wrote: On 04/07/2011 01:10 PM, Peter Maydell wrote: On 6 April 2011 20:34, Anthony Liguorianth...@codemonkey.ws wrote: http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=/liaai/crashdump/liaaicrashdumpnmiipmi.htm

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Jordan Justen
On Thu, Apr 7, 2011 at 11:44, Gleb Natapov g...@redhat.com wrote: On Thu, Apr 07, 2011 at 01:37:14PM -0500, Anthony Liguori wrote: The CS base starts out at 0xf and IP is 0xfff0.  That gives a real address of 0x0.  This is usually a trampoline to somewhere else in the space. CS

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Blue Swirl
On Thu, Apr 7, 2011 at 9:51 PM, Gleb Natapov g...@redhat.com wrote: On Thu, Apr 07, 2011 at 01:32:50PM -0500, Anthony Liguori wrote: On 04/07/2011 01:10 PM, Peter Maydell wrote: On 6 April 2011 20:34, Anthony Liguorianth...@codemonkey.ws  wrote:

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 12:03:41PM -0700, Jordan Justen wrote: On Thu, Apr 7, 2011 at 11:44, Gleb Natapov g...@redhat.com wrote: On Thu, Apr 07, 2011 at 01:37:14PM -0500, Anthony Liguori wrote: The CS base starts out at 0xf and IP is 0xfff0.  That gives a real address of 0x0.  This

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 10:04:00PM +0300, Blue Swirl wrote: On Thu, Apr 7, 2011 at 9:51 PM, Gleb Natapov g...@redhat.com wrote: On Thu, Apr 07, 2011 at 01:32:50PM -0500, Anthony Liguori wrote: On 04/07/2011 01:10 PM, Peter Maydell wrote: On 6 April 2011 20:34, Anthony

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Anthony Liguori
On 04/07/2011 01:44 PM, Gleb Natapov wrote: KVM doesn't support SMM although that's not because of this. KVM doesn't allow execution of ROM memory which makes it difficult to implement PAM in the way it's intended to be implemented. This makes SMM a bit tricky to make work. Since there's

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Olivier Galibert
On Thu, Apr 07, 2011 at 12:03:41PM -0700, Jordan Justen wrote: But, Anthony's point ('there's never really been a pressing need to support SMM') is probably the most important here, as I can't see a compelling use for SMM in QEMU. Running real biosen instead of seabios? Of course that's

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 02:21:16PM -0500, Anthony Liguori wrote: On 04/07/2011 01:44 PM, Gleb Natapov wrote: KVM doesn't support SMM although that's not because of this. KVM doesn't allow execution of ROM memory which makes it difficult to implement PAM in the way it's intended to be

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Jordan Justen
On Thu, Apr 7, 2011 at 12:21, Anthony Liguori anth...@codemonkey.ws wrote: QEMU does the leg work already to support SMM.  It doesn't work with KVM because we treat SMM as ROM memory and trap read/write access. To make it work with KVM, you'd have to hack things around to switch the VGA space

[PATCH 1/4] Generating list of common kvm tool commands

2011-04-07 Thread Prasad Joshi
- The Documentation/ directory will have a text file for each commmand. The text file should contain the information about the command in manpage format. - command-list.txt: is a list of common commands used with the kvm tool. - util/generate-cmdlist.sh: is a shell script that uses

[PATCH 2/4] Mostly the copied code from perf for argument processing

2011-04-07 Thread Prasad Joshi
- parse-options.[ch] has argument processing code. - types.h: Additional types for argument processing. - strbuf.[ch]: Added a function prefixcmp to compare string prefix Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/include/kvm/parse-options.h | 161 ++

[PATCH 4/4] Using the Gitish freamwork to run the virtual machine

2011-04-07 Thread Prasad Joshi
- kvm-run.[ch] Adds a new kvm command called 'run'. The most of the code is copied from main.c. - main.c is modified to use the functionality provided by framework. The old code from main.c is moved to kvm-run.c. Signed-off-by: Prasad Joshi prasadjoshi...@gmail.com --- tools/kvm/Makefile

[PATCH 3/4] Provides the basic Gitish framework

2011-04-07 Thread Prasad Joshi
- kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands and callback function. - kvm-cmd.c: implements two main functions for command processing. kvm_get_command(): searches table for specific command. handle_command(): invokes the callback function for a given command.

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Jordan Justen
On Thu, Apr 7, 2011 at 12:24, Olivier Galibert galib...@pobox.com wrote: On Thu, Apr 07, 2011 at 12:03:41PM -0700, Jordan Justen wrote: But, Anthony's point ('there's never really been a pressing need to support SMM') is probably the most important here, as I can't see a compelling use for SMM

Re: [PATCH 3/4] Provides the basic Gitish framework

2011-04-07 Thread Ingo Molnar
* Prasad Joshi prasadjoshi...@gmail.com wrote: - kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands and callback function. - kvm-cmd.c: implements two main functions for command processing. kvm_get_command(): searches table for specific command.

Re: [PATCH 2/4] Mostly the copied code from perf for argument processing

2011-04-07 Thread David Ahern
On 04/07/11 13:47, Prasad Joshi wrote: - parse-options.[ch] has argument processing code. - types.h: Additional types for argument processing. - strbuf.[ch]: Added a function prefixcmp to compare string prefix Rather than copy perf code, how about a tools/lib? David Signed-off-by:

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Anthony Liguori
On 04/07/2011 02:31 PM, Gleb Natapov wrote: Remapping part is easy. As you are saying QEMU already does remapping, Yes. the only thing missing is creating/destroying/remapping KVM memory slot (with SMP it is slightly more complicated, but doable). Yup. It's not impossible but not free.

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Anthony Liguori
On 04/07/2011 01:51 PM, Gleb Natapov wrote: NMI does not have to generate crash dump on every guest we support. Actually even for windows guest it does not generate one without tweaking registry. For all I know there is a guest that checks mail when NMI arrives. And for all we know, a guest

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Anthony Liguori
On 04/07/2011 02:17 PM, Gleb Natapov wrote: On Thu, Apr 07, 2011 at 10:04:00PM +0300, Blue Swirl wrote: On Thu, Apr 7, 2011 at 9:51 PM, Gleb Natapovg...@redhat.com wrote: I'd prefer something more generic like these: raise /apic@fee0:l1int lower /i44FX-pcihost/e1000@03.0/pinD The

Re: [PATCH 3/4] Provides the basic Gitish framework

2011-04-07 Thread Prasad Joshi
On Thu, Apr 7, 2011 at 9:14 PM, Ingo Molnar mi...@elte.hu wrote: * Prasad Joshi prasadjoshi...@gmail.com wrote: - kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands   and callback function. - kvm-cmd.c: implements two main functions for command processing.  

Re: [PATCH v2 2/2] rbd: allow configuration of rados from the rbd filename

2011-04-07 Thread Yoshiaki Tamura
2011/4/8 Yehuda Sadeh Weinraub yehud...@gmail.com: On Thu, Apr 7, 2011 at 2:54 AM, Yoshiaki Tamura tamura.yoshi...@gmail.com wrote: 2011/4/7 Stefan Hajnoczi stefa...@gmail.com: On Thu, Apr 07, 2011 at 10:14:03AM +0900, Yoshiaki Tamura wrote: 2011/3/29 Josh Durgin josh.dur...@dreamhost.com:

[PATCH 1/9] KVM test: unattended setup - mount the virtio win floppy as ro

2011-04-07 Thread Lucas Meneghel Rodrigues
Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/test_setup.py |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/test_setup.py b/client/tests/kvm/test_setup.py index 1125aea..844108f 100644 --- a/client/tests/kvm/test_setup.py

[PATCH] KVM test: Revert the default test set conditions to be rtl8139/ide

2011-04-07 Thread Lucas Meneghel Rodrigues
The qemu-kvm version shipped by Fedora 14 does not support booting from virtio disks directly, while qemu-kvm upstream doesn't. We recently removed image_boot = yes from the virtio variant, so this was causing a lot of KVM autotest newcomers to have the boot tests failed. So unfortunately, we'll

[PATCH 4/9] For win7/2k8, only copy virtio drivers to floppy if there is a floppy

2011-04-07 Thread Lucas Meneghel Rodrigues
You can specify drivers from a CDROM for those Operating Systems, so no need of drivers in the floppy. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/test_setup.py |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git

Re: [ANNOUNCE] Native Linux KVM tool

2011-04-07 Thread Anthony Liguori
On 04/06/2011 05:55 AM, Ingo Molnar wrote: Splitting up a project into several trees, often unnecessarily, is a self-inflicted wound really. There's certainly something to this but the bit that surprises me is the approaching being taken. Why not take perf and all the other tools, stick

Re: [ANNOUNCE] Native Linux KVM tool

2011-04-07 Thread Anthony Liguori
On 04/06/2011 04:33 AM, Ingo Molnar wrote: * Avi Kivitya...@redhat.com wrote: Sure, any succcesful project becomes an ugly gooball. It's almost a compliment. I disagree strongly with that sentiment and there's several good counter examples: - the Git project is also highly successful and

[PATCH 0/4] Introducing the concept of non fatal failures in KVM autotest

2011-04-07 Thread Lucas Meneghel Rodrigues
In order to fix make it possible to throw test errors in certain special conditions, yet executing dependent tests,introduced a new public job API and modified kvm_utils.run_tests logic. Also modified preprocessing code to provide a feature asked for a long time: make tests with dependencies

[PATCH 1/4] client job: Introduce a run_test_detail method

2011-04-07 Thread Lucas Meneghel Rodrigues
For the KVM test, we have for a long time a system of 'test dependencies': If a dependency test, such as guest installation has failed, it is not possible to run subsequent tests for obvious reasons. There are minor failures though, that don't necessarily block other tests, such as some specific

[PATCH 4/4] KVM test: Modify kvm_utils.run_tests to include non fatal failures

2011-04-07 Thread Lucas Meneghel Rodrigues
So now if a error.TestWarn is thrown, dependent tests can run just fine. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/kvm_utils.py | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/client/tests/kvm/kvm_utils.py

[PATCH 3/4] KVM test: Refine image_check function

2011-04-07 Thread Lucas Meneghel Rodrigues
With the accumulated experience running the KVM test to perform quality control on our KVM branches, we noticed that qemu-img check might return exit code != 0, but not all failures mean some data integrity problem happend. After checking qemu-img check code, we found out that: Exit code 1:

[PATCH 2/4] KVM test: Fail a test right away if 'dependency_fail = yes' is on params

2011-04-07 Thread Lucas Meneghel Rodrigues
When the KVM config file parser generates the list of tests, it will generate a full list of dicts, each dict maps to a test to be executed. However, due to the design of our dependency system, we skip running tests that had a dependency failure. While fair, this also masks the fact that the

Re: [ANNOUNCE] Native Linux KVM tool

2011-04-07 Thread Pekka Enberg
Hi Anthony, On Fri, Apr 8, 2011 at 5:14 AM, Anthony Liguori anth...@codemonkey.ws wrote: If someone was going to seriously go about doing something like this, a better approach would be to start with QEMU and remove anything non-x86 and all of the UI/command line/management bits and start

Re: [Autotest] [PATCH 3/4] KVM test: Refine image_check function

2011-04-07 Thread Lucas Meneghel Rodrigues
On Fri, Apr 8, 2011 at 2:08 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: With the accumulated experience running the KVM test to perform quality control on our KVM branches, we noticed that qemu-img check might return exit code != 0, but not all failures mean some data integrity

Re: [PATCH 2/4] Mostly the copied code from perf for argument processing

2011-04-07 Thread Pekka Enberg
On 04/07/11 13:47, Prasad Joshi wrote: - parse-options.[ch] has argument processing code. - types.h: Additional types for argument processing. - strbuf.[ch]: Added a function prefixcmp to compare string prefix On Thu, 2011-04-07 at 14:17 -0600, David Ahern wrote: Rather than copy

Re: [PATCH 3/4] Provides the basic Gitish framework

2011-04-07 Thread Pekka Enberg
On Thu, 2011-04-07 at 23:33 +0100, Prasad Joshi wrote: On Thu, Apr 7, 2011 at 9:14 PM, Ingo Molnar mi...@elte.hu wrote: * Prasad Joshi prasadjoshi...@gmail.com wrote: - kvm-cmd.h: Adds a new structure cmd_struct to create a table of commands and callback function. - kvm-cmd.c:

Re: [Qemu-devel] [PATCH 2/2 V7] qemu,qmp: add inject-nmi qmp command

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 04:39:58PM -0500, Anthony Liguori wrote: On 04/07/2011 01:51 PM, Gleb Natapov wrote: NMI does not have to generate crash dump on every guest we support. Actually even for windows guest it does not generate one without tweaking registry. For all I know there is a guest

Re: [Qemu-devel] How does the QEMU load the binary files bios.bin and vgabios-cirrus.bin?

2011-04-07 Thread Gleb Natapov
On Thu, Apr 07, 2011 at 04:34:38PM -0500, Anthony Liguori wrote: On 04/07/2011 02:31 PM, Gleb Natapov wrote: Remapping part is easy. As you are saying QEMU already does remapping, Yes. the only thing missing is creating/destroying/remapping KVM memory slot (with SMP it is slightly more