Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Avi Kivity
On 10/11/2010 07:46 AM, Neo Jia wrote: BTW, I have a question about saving FPU, especially those XMM registers. I don't see an explicit save FPU after exiting guest due to an exception (MMIO writes). The only thing I saw about fpu operation is fpu restore right before loading guest. Is there

Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Neo Jia
On Sun, Oct 10, 2010 at 11:30 PM, Avi Kivity a...@redhat.com wrote:  On 10/11/2010 07:46 AM, Neo Jia wrote: BTW, I have a question about saving FPU, especially those XMM registers. I don't see an explicit save FPU after exiting guest due to an exception (MMIO writes). The only thing I saw

RE: [PATCH v12 06/17] Use callback to deal with skb_release_data() specially.

2010-10-11 Thread Xin, Xiaohui
-Original Message- From: David Miller [mailto:da...@davemloft.net] Sent: Friday, October 01, 2010 3:15 PM To: Xin, Xiaohui Cc: net...@vger.kernel.org; kvm@vger.kernel.org; linux-ker...@vger.kernel.org; m...@redhat.com; mi...@elte.hu; herb...@gondor.apana.org.au; jd...@linux.intel.com

RE: [PATCH v12 10/17] Add a hook to intercept external buffers from NIC driver.

2010-10-11 Thread Xin, Xiaohui
-Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] Sent: Thursday, September 30, 2010 10:22 PM To: Xin, Xiaohui Cc: net...@vger.kernel.org; kvm@vger.kernel.org; linux-ker...@vger.kernel.org; m...@redhat.com; mi...@elte.hu; da...@davemloft.net;

Re: [v2 RFC PATCH 0/4] Implement multiqueue virtio-net

2010-10-11 Thread Krishna Kumar2
Michael S. Tsirkin m...@redhat.com wrote on 10/06/2010 07:04:31 PM: On Fri, Sep 17, 2010 at 03:33:07PM +0530, Krishna Kumar wrote: For 1 TCP netperf, I ran 7 iterations and summed it. Explanation for degradation for 1 stream case: I thought about possible RX/TX contention reasons, and I

Re: [PATCH trace-cmd] plugin_kvm: remove stray line from kvm_emulate_insn_handler()

2010-10-11 Thread Avi Kivity
On 09/26/2010 11:38 AM, Avi Kivity wrote: 'guest_rip' is not part of kvm_emulate_insn. Signed-off-by: Avi Kivitya...@redhat.com --- plugin_kvm.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/plugin_kvm.c b/plugin_kvm.c index 00cac5a..cdd52c7 100644 ---

[PATCH] plugin_kvm: fix kvm_exit rip formatting

2010-10-11 Thread Avi Kivity
%0xlx is not a valid printf format. Signed-off-by: Avi Kivity a...@redhat.com --- plugin_kvm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugin_kvm.c b/plugin_kvm.c index cdd52c7..724143d 100644 --- a/plugin_kvm.c +++ b/plugin_kvm.c @@ -153,7 +153,7 @@ static int

Re: [PATCH 1/3] KVM: Emulation MSI-X mask bits for assigned devices

2010-10-11 Thread Sheng Yang
On Sunday 03 October 2010 19:12:47 Michael S. Tsirkin wrote: On Tue, Sep 28, 2010 at 05:44:10PM +0800, Sheng Yang wrote: This patch enable per-vector mask for assigned devices using MSI-X. Signed-off-by: Sheng Yang sh...@linux.intel.com I think I see an issue here, noted below. Some

Re: [PATCH 1/3] KVM: Emulation MSI-X mask bits for assigned devices

2010-10-11 Thread Sheng Yang
On Sunday 03 October 2010 21:03:16 Avi Kivity wrote: On 09/30/2010 07:41 AM, Sheng Yang wrote: On Wednesday 29 September 2010 16:36:25 Avi Kivity wrote: On 09/28/2010 11:44 AM, Sheng Yang wrote: This patch enable per-vector mask for assigned devices using MSI-X. +

Re: [PATCH 0/3] Emulate MSI-X mask bits for assigned devices

2010-10-11 Thread Sheng Yang
On Friday 01 October 2010 00:44:51 Marcelo Tosatti wrote: On Tue, Sep 28, 2010 at 05:44:09PM +0800, Sheng Yang wrote: Hi Avi Marcelo This patchset would add emulation of MSI-X mask bit for assigned devices in QEmu. BTW: We are also purposed an acceleration of MSI-X mask bit for KVM

Re: [PATCH 1/3] KVM: Emulation MSI-X mask bits for assigned devices

2010-10-11 Thread Sheng Yang
On Friday 01 October 2010 00:18:10 Marcelo Tosatti wrote: On Tue, Sep 28, 2010 at 05:44:10PM +0800, Sheng Yang wrote: This patch enable per-vector mask for assigned devices using MSI-X. Signed-off-by: Sheng Yang sh...@linux.intel.com --- arch/x86/kvm/x86.c |1 +

Re: [PATCH 1/3] KVM: Emulation MSI-X mask bits for assigned devices

2010-10-11 Thread Michael S. Tsirkin
On Mon, Oct 11, 2010 at 05:28:30PM +0800, Sheng Yang wrote: On Sunday 03 October 2010 19:12:47 Michael S. Tsirkin wrote: On Tue, Sep 28, 2010 at 05:44:10PM +0800, Sheng Yang wrote: This patch enable per-vector mask for assigned devices using MSI-X. Signed-off-by: Sheng Yang

[PATCH] KVM: Don't reset mmu context unnecessarily when updating EFER

2010-10-11 Thread Avi Kivity
The only bit of EFER that affects the mmu is NX, and this is already accounted for (LME only takes effect when changing cr0). Based on a patch by Hillf Danton. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/x86.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git

[PATCH] KVM test: Add vhost-net support

2010-10-11 Thread Lucas Meneghel Rodrigues
Vhost is a kernel-level backend for virtio. This patch add a nic_param named vhost to enable/disable vhost backend. Changes from v3: - Added comment explaining that the feature only works with nic_mode = tap. - Instead of commenting out the option vhost, leave it uncommented but with default

Re: [V2 PATCH 2/2] KVM test: Add vhost-net support

2010-10-11 Thread Lucas Meneghel Rodrigues
On Fri, 2010-10-08 at 21:46 -0400, Jason Wang wrote: Hi Lucas: Vhost-net backend is only valid when we use tap, so it should work with nic_mode=tap. Maybe we could add a comment above the vhost=on to warn the user to use tap when he need vhost. Ok, fair enough, that's what I've done for v3,

Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Avi Kivity
On 10/11/2010 08:49 AM, Neo Jia wrote: On Sun, Oct 10, 2010 at 11:30 PM, Avi Kivitya...@redhat.com wrote: On 10/11/2010 07:46 AM, Neo Jia wrote: BTW, I have a question about saving FPU, especially those XMM registers. I don't see an explicit save FPU after exiting guest due to an

Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Avi Kivity
On 10/11/2010 04:27 PM, Avi Kivity wrote: On 10/11/2010 08:49 AM, Neo Jia wrote: On Sun, Oct 10, 2010 at 11:30 PM, Avi Kivitya...@redhat.com wrote: On 10/11/2010 07:46 AM, Neo Jia wrote: BTW, I have a question about saving FPU, especially those XMM registers. I don't see an explicit

Network Patch set V4

2010-10-11 Thread pradeep
Hi Lucas, i covered below tests on RHEL 5.5 , RHEL 6 guests with vhost enbled. Please find the below errors and cause for errros. I also attached few other test cases can be added to out TODO list of network patchset. I am working on couple of these issues. 1. Nice_promisc: -

Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Avi Kivity
On 10/11/2010 04:31 PM, Avi Kivity wrote: btw, I just found an old branch of mine that implements movdqa, I'll see if I can refresh and repost it. It's pretty hard to rebase; it's in kvm.git sse-mmio if you're interested. -- error compiling committee.c: too many arguments to function --

Re: [PATCH 2/2] device-assignment: Allow PCI to manage the option ROM

2010-10-11 Thread Alex Williamson
On Sat, 2010-10-09 at 23:44 +0200, Michael S. Tsirkin wrote: On Fri, Oct 08, 2010 at 09:12:52AM -0600, Alex Williamson wrote: On Fri, 2010-10-08 at 10:40 +0200, Michael S. Tsirkin wrote: On Thu, Oct 07, 2010 at 10:02:25PM -0600, Alex Williamson wrote: On Fri, 2010-10-08 at 00:45 +0200,

Re: [PATCH v12 06/17] Use callback to deal with skb_release_data() specially.

2010-10-11 Thread David Miller
From: Xin, Xiaohui xiaohui@intel.com Date: Mon, 11 Oct 2010 15:06:05 +0800 That's to avoid the new cache miss caused by using destructor_arg in data path like skb_release_data(). That's based on the comment from Eric Dumazet on v7 patches. Thanks for the explanation. -- To unsubscribe

Re: [PATCH 2/2] device-assignment: Allow PCI to manage the option ROM

2010-10-11 Thread Michael S. Tsirkin
On Mon, Oct 11, 2010 at 09:15:52AM -0600, Alex Williamson wrote: On Sat, 2010-10-09 at 23:44 +0200, Michael S. Tsirkin wrote: On Fri, Oct 08, 2010 at 09:12:52AM -0600, Alex Williamson wrote: On Fri, 2010-10-08 at 10:40 +0200, Michael S. Tsirkin wrote: On Thu, Oct 07, 2010 at 10:02:25PM

Re: [PATCH v12 06/17] Use callback to deal with skb_release_data() specially.

2010-10-11 Thread Eric Dumazet
Le lundi 11 octobre 2010 à 08:27 -0700, David Miller a écrit : From: Xin, Xiaohui xiaohui@intel.com Date: Mon, 11 Oct 2010 15:06:05 +0800 That's to avoid the new cache miss caused by using destructor_arg in data path like skb_release_data(). That's based on the comment from Eric

Re: [PATCH 2/2] device-assignment: Allow PCI to manage the option ROM

2010-10-11 Thread Alex Williamson
On Mon, 2010-10-11 at 17:21 +0200, Michael S. Tsirkin wrote: On Mon, Oct 11, 2010 at 09:15:52AM -0600, Alex Williamson wrote: On Sat, 2010-10-09 at 23:44 +0200, Michael S. Tsirkin wrote: On Fri, Oct 08, 2010 at 09:12:52AM -0600, Alex Williamson wrote: On Fri, 2010-10-08 at 10:40 +0200,

Re: system_powerdown not working for qemu-kvm 0.12.4?

2010-10-11 Thread Ruben Kerkhof
Hi Avi, On Sun, Aug 15, 2010 at 13:00, Avi Kivity a...@redhat.com wrote: I'm betting 73b48d914f9 is the cause, but let's see the full bisect. system_powerdown with FreeBSD 8.1 works on 73b48d914f9. I've bisected the issue to commit 76e617c. Let me know if I should do some other tests.

Re: system_powerdown not working for qemu-kvm 0.12.4?

2010-10-11 Thread Avi Kivity
On 10/11/2010 06:29 PM, Ruben Kerkhof wrote: Hi Avi, On Sun, Aug 15, 2010 at 13:00, Avi Kivitya...@redhat.com wrote: I'm betting 73b48d914f9 is the cause, but let's see the full bisect. system_powerdown with FreeBSD 8.1 works on 73b48d914f9. I've bisected the issue to commit 76e617c.

Re: [libvirt-users] Problems with libvirt / qemu

2010-10-11 Thread Dan Johansson
Yes, the image contains an OS (it works if I start the guest manually). On Monday 11 October 2010 03.41:29 jbuy0710 wrote: The image contains an OS or not? If not, you can't choose to boot from disk like boot dev='hd'/ 2010/10/10 Dan Johansson k...@dmj.nu: HI, I have a small problem

Re: [PATCH 1/3] KVM: Emulation MSI-X mask bits for assigned devices

2010-10-11 Thread Marcelo Tosatti
On Mon, Oct 11, 2010 at 05:49:17PM +0800, Sheng Yang wrote: On Friday 01 October 2010 00:18:10 Marcelo Tosatti wrote: On Tue, Sep 28, 2010 at 05:44:10PM +0800, Sheng Yang wrote: This patch enable per-vector mask for assigned devices using MSI-X. Signed-off-by: Sheng Yang

[patch 1/2] vhost: potential integer overflows

2010-10-11 Thread Dan Carpenter
I did an audit for potential integer overflows of values which get passed to access_ok() and here are the results. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index dd3d6f7..c2aa12c 100644 --- a/drivers/vhost/vhost.c +++

[patch 2/2] vhost: fix return code for log_access_ok()

2010-10-11 Thread Dan Carpenter
access_ok() returns 1 if it's OK otherwise it should return 0. Signed-off-by: Dan Carpenter erro...@gmail.com diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index c2aa12c..f82fe57 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -371,7 +371,7 @@ static int

Re: [patch 1/2] vhost: potential integer overflows

2010-10-11 Thread Al Viro
On Mon, Oct 11, 2010 at 07:22:57PM +0200, Dan Carpenter wrote: I did an audit for potential integer overflows of values which get passed to access_ok() and here are the results. FWIW, UINT_MAX is wrong here. What you want is maximal size_t value. Signed-off-by: Dan Carpenter

Re: Using 1920x1080 resolution with kvm

2010-10-11 Thread Kenni Lund
2010/10/10 Aniruddha mailingdotl...@gmail.com: I would like to use a resolution 1920x1080 for my Windows XP Guest. Leave KVM at the default resolution (eg. don't specify any resolution), activate remote desktop in Windows XP and connect with rdesktop or some other RDP client to the guest. The

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-11 Thread Anthony Liguori
On 10/08/2010 09:27 PM, Zachary Amsden wrote: On 10/08/2010 03:10 PM, Arjan Koers wrote: On 2010-10-09 00:06, Marcelo Tosatti wrote: On Thu, Oct 07, 2010 at 04:47:11PM -1000, Zachary Amsden wrote: On 10/07/2010 02:12 PM, Arjan Koers wrote: On 2010-10-03 01:42, Zachary Amsden wrote: ...

Re: system_powerdown not working for qemu-kvm 0.12.4?

2010-10-11 Thread Ruben Kerkhof
On Mon, Oct 11, 2010 at 18:57, Avi Kivity a...@redhat.com wrote:  On 10/11/2010 06:29 PM, Ruben Kerkhof wrote: Hi Avi, On Sun, Aug 15, 2010 at 13:00, Avi Kivitya...@redhat.com  wrote:  I'm betting 73b48d914f9 is the cause, but let's see the full bisect. system_powerdown with FreeBSD 8.1

[patch 3/8] Expose thread_id in info cpus

2010-10-11 Thread Marcelo Tosatti
commit ce6325ff1af34dbaee91c8d28e792277e43f1227 Author: Glauber Costa gco...@redhat.com Date: Wed Mar 5 17:01:10 2008 -0300 Augment info cpus This patch exposes the thread id associated with each cpu through the already well known 'info cpus' interface. Signed-off-by: Marcelo

[patch 4/8] kvm: x86: add mce support

2010-10-11 Thread Marcelo Tosatti
Port qemu-kvm's MCE support commit c68b2374c9048812f488e00ffb95db66c0bc07a7 Author: Huang Ying ying.hu...@intel.com Date: Mon Jul 20 10:00:53 2009 +0800 Add MCE simulation support to qemu/kvm KVM ioctls are used to initialize MCE simulation and inject MCE. The real MCE

[patch 1/8] signalfd compatibility

2010-10-11 Thread Marcelo Tosatti
Port qemu-kvm's signalfd compat code. commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5 Author: Anthony Liguori aligu...@us.ibm.com Date: Wed May 7 11:55:47 2008 -0500 Use signalfd() in io-thread This patch reworks the IO thread to use signalfd() instead of sigtimedwait() This

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-11 Thread Marcelo Tosatti
On Mon, Oct 11, 2010 at 12:53:26PM -0500, Anthony Liguori wrote: On 10/08/2010 09:27 PM, Zachary Amsden wrote: On 10/08/2010 03:10 PM, Arjan Koers wrote: On 2010-10-09 00:06, Marcelo Tosatti wrote: On Thu, Oct 07, 2010 at 04:47:11PM -1000, Zachary Amsden wrote: On 10/07/2010 02:12 PM, Arjan

[patch 7/8] MCE: Relay UCR MCE to guest

2010-10-11 Thread Marcelo Tosatti
Port qemu-kvm's commit 4b62fff1101a7ad77553147717a8bd3bf79df7ef Author: Huang Ying ying.hu...@intel.com Date: Mon Sep 21 10:43:25 2009 +0800 MCE: Relay UCR MCE to guest UCR (uncorrected recovery) MCE is supported in recent Intel CPUs, where some hardware error such as some

[patch 5/8] Export qemu_ram_addr_from_host

2010-10-11 Thread Marcelo Tosatti
To be used by next patches. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: qemu/cpu-common.h === --- qemu.orig/cpu-common.h +++ qemu/cpu-common.h @@ -47,7 +47,8 @@ void qemu_ram_free(ram_addr_t addr); /* This should only

[patch 2/8] iothread: use signalfd

2010-10-11 Thread Marcelo Tosatti
Block SIGALRM, SIGIO and consume them via signalfd. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: qemu/cpus.c === --- qemu.orig/cpus.c +++ qemu/cpus.c @@ -33,6 +33,7 @@ #include exec-all.h #include cpus.h +#include

[patch 8/8] Add savevm/loadvm support for MCE

2010-10-11 Thread Marcelo Tosatti
Port qemu-kvm's commit 1bab5d11545d8de5facf46c28630085a2f9651ae Author: Huang Ying ying.hu...@intel.com Date: Wed Mar 3 16:52:46 2010 +0800 Add savevm/loadvm support for MCE MCE registers are saved/load into/from CPUState in kvm_arch_save/load_regs. To simulate the MCG_STATUS

[patch 6/8] Add RAM - physical addr mapping in MCE simulation

2010-10-11 Thread Marcelo Tosatti
From: Huang Ying ying.hu...@intel.com In QEMU-KVM, physical address != RAM address. While MCE simulation needs physical address instead of RAM address. So kvm_physical_memory_addr_from_ram() is implemented to do the conversion, and it is invoked before being filled in the IA32_MCi_ADDR MSR.

[patch 0/8] port qemu-kvm's MCE support (v3)

2010-10-11 Thread Marcelo Tosatti
Port qemu-kvm's KVM MCE (Machine Check Exception) handling to qemu. It allows qemu to propagate MCEs to the guest. v2: - rename do_qemu_ram_addr_from_host. - fix kvm_on_sigbus/kvm_on_sigbus_vcpu naming. - fix bank register restoration (Dean Nelson). v3: - condition MCE generation on MCE_SEG_P

KVM call agenda for Oct 12

2010-10-11 Thread Juan Quintela
Please send in any agenda items you are interested in covering. thanks, Juan. -- 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: [libvirt-users] Problems with libvirt / qemu

2010-10-11 Thread Brian Jackson
On Monday, October 11, 2010 11:57:27 am Dan Johansson wrote: Yes, the image contains an OS (it works if I start the guest manually). On Monday 11 October 2010 03.41:29 jbuy0710 wrote: The image contains an OS or not? If not, you can't choose to boot from disk like boot dev='hd'/

Re: [PATCH] plugin_kvm: fix kvm_exit rip formatting

2010-10-11 Thread Steven Rostedt
On Mon, 2010-10-11 at 10:58 +0200, Avi Kivity wrote: %0xlx is not a valid printf format. Signed-off-by: Avi Kivity a...@redhat.com Applied, thanks! -- Steve --- plugin_kvm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugin_kvm.c b/plugin_kvm.c index

RE: Exceed 1GB/s with virtio-net ?

2010-10-11 Thread matthew . r . rohrer
I had a similar problem with virtio. With kernels newer than 2.6.31.5 and KVM versions greater than 11 my throughput decreased dramatically. While with kernel 2.6.31.5 and version 11 software I could only get around 1.5 Gbps max with a single iperf thread. Moving to higher versions of the

Re: 2.6.35-rc1 regression with pvclock and smp guests

2010-10-11 Thread Zachary Amsden
On 10/08/2010 10:59 PM, Arjan Koers wrote: On 2010-10-09 08:29, Michael Tokarev wrote: ... The result is that no released linux kernel boots in smp in kvm, which is a linux virtual machine. That's irony, isn't it? I wonder how distributions (which are almost all based on 2.6.32 nowadays)

[PATCH RFC] tun: dma engine support

2010-10-11 Thread Michael S. Tsirkin
Simple hack to use dma engine for tun RX. Only one skb in flight at the moment. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- I am still looking at handling multiple skbs, but sending this out for early flames and improvement suggestions. Loopback testing seems to show only minor

RE: [PATCH v12 06/17] Use callback to deal with skb_release_data() specially.

2010-10-11 Thread Xin, Xiaohui
-Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] Sent: Monday, October 11, 2010 11:42 PM To: David Miller Cc: Xin, Xiaohui; net...@vger.kernel.org; kvm@vger.kernel.org; linux-ker...@vger.kernel.org; m...@redhat.com; mi...@elte.hu; herb...@gondor.apana.org.au;

Re: how to debug unhandled vm exit: 0x11?

2010-10-11 Thread Neo Jia
On Mon, Oct 11, 2010 at 7:27 AM, Avi Kivity a...@redhat.com wrote:  On 10/11/2010 08:49 AM, Neo Jia wrote: On Sun, Oct 10, 2010 at 11:30 PM, Avi Kivitya...@redhat.com  wrote:    On 10/11/2010 07:46 AM, Neo Jia wrote:  BTW, I have a question about saving FPU, especially those XMM  

iPhone with KVM?

2010-10-11 Thread Jun Koi
hi, i have a guest Windows on KVM, with iTunes installed on that. then i let my guest to have direct access to my iPhone connecting to my physical USB port, using usb_add command. but i got a serious problem: usb_add doesnt seem to work, as my guest Windows never sees my iPhone. so it seems that