Re: [PATCH 3/6] PCI / Intel IOMMU: Use syscore_ops instead of sysdev class and sysdev

2011-03-23 Thread Roedel, Joerg
On Tue, Mar 22, 2011 at 06:07:21PM -0400, Rafael J. Wysocki wrote: > On Tuesday, March 22, 2011, Joerg Roedel wrote: > > On Mon, Mar 21, 2011 at 07:36:17PM -0400, Rafael J. Wysocki wrote: > > > drivers/pci/intel-iommu.c | 38 +- > > > 1 file changed, 9 inserti

Re: kvm, emulation hangs when using some usb device

2011-03-23 Thread slavik
it works for ZTE modem, but still hung with -usbdevice host:2022:0008 (amikon vpn key). any ideas? On Tue, Mar 22, 2011 at 6:28 PM, David Ahern wrote: > > > On 03/22/11 12:20, slavik wrote: >> i suggest this is synonyms for single function, doesn't it? >> > > It's the legacy syntax - you are alre

Re: KVM make error--drivers/usb/serial/usb_wwan.c

2011-03-23 Thread Avi Kivity
On 03/23/2011 04:41 AM, Ren, Yongjie wrote: Hi folks, Kvm.git: commit 2ee44a580db58f98d85b57bfc468bbc5729ec9b3 Author: Avi Kivity Date: Mon Mar 21 12:53:58 2011 +0200 My build system: RHEL5u5, Linux kvm-build 2.6.38-rc4+ #1 SMP Sat Feb 19 15:35:09 CST 2011 x86_64 x86_64 x86_64 GNU/Linux

IOMMU Query

2011-03-23 Thread Abhilash Kesavan
Hi all, We are investigating if the generic IOMMU API (include/linux/iommu.h) can be used for the IOMMU on our arm-based boards. I noticed that msm's IOMMU code (arch/arm/mach-msm/iommu.c) uses the genric IOMMU API and have a few queries regarding the supported features. Following are some feature

Re: [PATCH] KVM:PPC Issue in exit timing clearance

2011-03-23 Thread Avi Kivity
On 03/22/2011 04:27 PM, Alexander Graf wrote: What about using vcpu->requests to have the statistics cleared in vcpu context? What about dropping the whole thing and replacing it with tracepoints? That should work. The question is if it's worth the effort. The current code is there after

Re: IOMMU Query

2011-03-23 Thread Roedel, Joerg
On Wed, Mar 23, 2011 at 05:08:45AM -0400, Abhilash Kesavan wrote: > We are investigating if the generic IOMMU API (include/linux/iommu.h) > can be used for the IOMMU on our arm-based boards. Great :-) > I noticed that msm's IOMMU code (arch/arm/mach-msm/iommu.c) uses the > genric IOMMU API and ha

[PATCH] KVM: VMX: simplify NMI mask management

2011-03-23 Thread Avi Kivity
Use vmx_set_nmi_mask() instead of open-coding management of the hardware bit and the software hint (nmi_known_unmasked). There's a slight change of behaviour when running without hardware virtual NMI support - we now clear the NMI mask if NMI delivery faulted in that case as well. This improves e

Re: [PATCH] KVM: VMX: simplify NMI mask management

2011-03-23 Thread Jan Kiszka
On 2011-03-23 14:12, Avi Kivity wrote: > Use vmx_set_nmi_mask() instead of open-coding management of > the hardware bit and the software hint (nmi_known_unmasked). > > There's a slight change of behaviour when running without > hardware virtual NMI support - we now clear the NMI mask if > NMI deli

Re: [PATCH] KVM: VMX: simplify NMI mask management

2011-03-23 Thread Avi Kivity
On 03/23/2011 04:54 PM, Jan Kiszka wrote: > @@ -3991,9 +3987,7 @@ static void __vmx_complete_interrupts(struct vcpu_vmx *vmx, >* Clear bit "block by NMI" before VM entry if a NMI >* delivery faulted. >*/ > - vmcs_clear_bits(GUEST_INTERRUPTIBILITY_INF

Re: [PATCH] KVM: VMX: simplify NMI mask management

2011-03-23 Thread Jan Kiszka
On 2011-03-23 15:58, Avi Kivity wrote: > On 03/23/2011 04:54 PM, Jan Kiszka wrote: >>> @@ -3991,9 +3987,7 @@ static void __vmx_complete_interrupts(struct >>> vcpu_vmx *vmx, >>> * Clear bit "block by NMI" before VM entry if a NMI >>> * delivery faulted. >>> */ >

Re: kvm, emulation hangs when using some usb device

2011-03-23 Thread David Ahern
On 03/23/11 02:03, slavik wrote: > it works for ZTE modem, but still hung with -usbdevice host:2022:0008 > (amikon vpn key). > any ideas? I am not familiar with that device. It may well not be compatible going through the USB 1.1 controller. So -usbdevice cleared the "freeze"/"hung" problem the

Re: [PATCH] KVM: VMX: simplify NMI mask management

2011-03-23 Thread Avi Kivity
On 03/23/2011 05:10 PM, Jan Kiszka wrote: On 2011-03-23 15:58, Avi Kivity wrote: > On 03/23/2011 04:54 PM, Jan Kiszka wrote: >>> @@ -3991,9 +3987,7 @@ static void __vmx_complete_interrupts(struct vcpu_vmx *vmx, >>>* Clear bit "block by NMI" before VM entry if a NMI >>>

[PATCH] expose async pf through our standard mechanism

2011-03-23 Thread Glauber Costa
As Avi recently mentioned, the new standard mechanism for exposing features is KVM_GET_SUPPORTED_CPUID, not spanning CAPs. For some reason async pf missed that. So expose async_pf here. Signed-off-by: Glauber Costa CC: Gleb Natapov CC: Avi Kivity --- arch/x86/kvm/x86.c |1 + 1 files chan

Re: [PATCH] KVM: VMX: simplify NMI mask management

2011-03-23 Thread Jan Kiszka
On 2011-03-23 17:28, Avi Kivity wrote: > On 03/23/2011 05:10 PM, Jan Kiszka wrote: >> On 2011-03-23 15:58, Avi Kivity wrote: >>> On 03/23/2011 04:54 PM, Jan Kiszka wrote: > @@ -3991,9 +3987,7 @@ static void __vmx_complete_interrupts(struct > vcpu_vmx *vmx, > * Clea

[stable,master] [PATCH] qemu-kvm: Don't break device assignment INTx

2011-03-23 Thread Alex Williamson
Commit 1a836445 moved pci.o from a target object to a generic hardware object, which drops CONFIG_KVM_DEVICE_ASSIGNMENT. This results in the device assignment kludge to update INTx vectors on interrupt routing changes never getting called, which means device assignment level triggered interrupts d

Re: IOMMU Query

2011-03-23 Thread Stepan Moskovchenko
On 3/23/2011 2:08 AM, Abhilash Kesavan wrote: Hi all, Hello We are investigating if the generic IOMMU API (include/linux/iommu.h) can be used for the IOMMU on our arm-based boards. I noticed that msm's IOMMU code (arch/arm/mach-msm/iommu.c) uses the genric IOMMU API and have a few queries reg

Re: [PATCH 2/2] virtio_net: remove send completion interrupts and avoid TX queue overrun through packet drop

2011-03-23 Thread Rusty Russell
On Tue, 22 Mar 2011 13:36:50 +0200, "Michael S. Tsirkin" wrote: > On Mon, Mar 21, 2011 at 11:03:07AM -0700, Shirley Ma wrote: > > On Fri, 2011-03-18 at 18:41 -0700, Shirley Ma wrote: > > > > > + /* Drop packet instead of stop queue for better > > > performance > > > > */ > > > > > > > > I

High latency with VirtIO NIC

2011-03-23 Thread Xupeng Yun
Hi, I deployed KVM on my Gentoo servers for performance testing, but I am now having high latency problems with the VirtIO NIC: diggle7 is the KVM host, diggle6 is another physical host in the same physical network, and app211 is a KVM guest running on diggle7. ---

RE: [PATCH] KVM:PPC Issue in exit timing clearance

2011-03-23 Thread Bhushan Bharat-R65777
> -Original Message- > From: Avi Kivity [mailto:a...@redhat.com] > Sent: Wednesday, March 23, 2011 2:50 PM > To: Alexander Graf > Cc: Bhushan Bharat-R65777; kvm@vger.kernel.org; bharatb.ya...@gmail.com; > Bhushan Bharat-R65777 > Subject: Re: [PATCH] KVM:PPC Issue in exit timing clearance

Re: [PATCH 2/2] virtio_net: remove send completion interrupts and avoid TX queue overrun through packet drop

2011-03-23 Thread Rusty Russell
> With simply removing the notify here, it does help the case when TX > overrun hits too often, for example for 1K message size, the single > TCP_STREAM performance improved from 2.xGb/s to 4.xGb/s. OK, we'll be getting rid of the "kick on full", so please delete that on all benchmarks. Now, does

Re: [PATCH 2/2] virtio_net: remove send completion interrupts and avoid TX queue overrun through packet drop

2011-03-23 Thread Shirley Ma
On Thu, 2011-03-24 at 11:00 +1030, Rusty Russell wrote: > > With simply removing the notify here, it does help the case when TX > > overrun hits too often, for example for 1K message size, the single > > TCP_STREAM performance improved from 2.xGb/s to 4.xGb/s. > > OK, we'll be getting rid of the "

[RESEND] [PATCH] kvm: remove useless function define from file arch/x86/kvm/irq.h

2011-03-23 Thread Duan Jiong
Just remove useless function define kvm_pic_clear_isr_ack() and pit_has_pending_timer() Signed-off-by: Duan Jiong --- arch/x86/kvm/irq.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/irq.h b/arch/x86/kvm/irq.h index ba910d1..15df9b5 100644 --- a/arch/x86/

[RESEND] [PATCH] kvm: remove useless function define kvm_inject_pit_timer_irqs()

2011-03-23 Thread Duan Jiong
Just remove useless function define kvm_inject_pit_timer_irqs() from file arch/x86/kvm/i8254.h Signed-off-by:Duan Jiong --- arch/x86/kvm/i8254.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h index 46d08ca..9f3cea3 100644 ---

Re: IOMMU Query

2011-03-23 Thread Joerg Roedel
On Wed, Mar 23, 2011 at 03:18:04PM -0700, Stepan Moskovchenko wrote: > Consistency between multiple IOMMUs can be maintained. Map and unmap > operations happen on a 'domain' structure (which is intended to abstract > a page table), and a domain can be attached to one or more IOMMU > devices,

Issue: qemu-kvm with gdb

2011-03-23 Thread shiv chauhan
Hi all, While remote debugging a kernel (not written in C and no debugging symbols) using qemu-kvm with gdb, strange it does not stop at breakpoint though qemu works well: Commands: # qemu-kvm -s -S -hda hd.img & #gdb (gdb) target remote localhost:1234 Remote debugging using localhost:1234 0x000

Re: [PATCH 2/2] virtio_net: remove send completion interrupts and avoid TX queue overrun through packet drop

2011-03-23 Thread Michael S. Tsirkin
On Thu, Mar 24, 2011 at 10:46:49AM +1030, Rusty Russell wrote: > On Tue, 22 Mar 2011 13:36:50 +0200, "Michael S. Tsirkin" > wrote: > > On Mon, Mar 21, 2011 at 11:03:07AM -0700, Shirley Ma wrote: > > > On Fri, 2011-03-18 at 18:41 -0700, Shirley Ma wrote: > > > > > > + /* Drop packet instead