Re: [v2.6.32.y 2/2] KVM: x86: fix missing checks in syscall emulation

2012-03-23 Thread Stefan Bader
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 23.03.2012 01:07, Marcelo Tosatti wrote: On Thu, Mar 22, 2012 at 09:50:42AM +0100, Stefan Bader wrote: From 69712f0c7cbb6363f7b2170fba93945a72d77712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?=

[PATCH RFC V5 0/6] kvm : Paravirt-spinlock support for KVM guests

2012-03-23 Thread Raghavendra K T
The 6-patch series to follow this email extends KVM-hypervisor and Linux guest running on KVM-hypervisor to support pv-ticket spinlocks, based on Xen's implementation. One hypercall is introduced in KVM hypervisor,that allows a vcpu to kick another vcpu out of halt state. The blocking of vcpu is

[PATCH RFC V5 1/6] debugfs: Add support to print u32 array in debugfs

2012-03-23 Thread Raghavendra K T
From: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Move the code from Xen to debugfs to make the code common for other users as well. Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Signed-off-by: Suzuki Poulose suz...@in.ibm.com Signed-off-by: Raghavendra K T

[PATCH RFC V5 2/6] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-03-23 Thread Raghavendra K T
From: Srivatsa Vaddagiri va...@linux.vnet.ibm.com KVM_HC_KICK_CPU allows the calling vcpu to kick another vcpu out of halt state. The presence of these hypercalls is indicated to guest via KVM_FEATURE_PV_UNHALT/KVM_CAP_PV_UNHALT. Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com

[PATCH RFC V5 3/6] kvm : Add unhalt msr to aid (live) migration

2012-03-23 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com Currently guest does not need to know pv_unhalt state and intended to be used via GET/SET_MSR ioctls during migration. Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- diff --git a/arch/x86/include/asm/kvm_para.h

[PATCH RFC V5 4/6] kvm guest : Added configuration support to enable debug information for KVM Guests

2012-03-23 Thread Raghavendra K T
From: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Signed-off-by: Suzuki Poulose suz...@in.ibm.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 10c28ec..a4530bd

[PATCH RFC V5 6/6] Documentation/kvm : Add documentation on Hypercalls and features used for PV spinlock

2012-03-23 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com KVM_HC_KICK_CPU hypercall added to wakeup halted vcpu in paravirtual spinlock enabled guest. KVM_FEATURE_PV_UNHALT enables guest to check whether pv spinlock can be enabled in guest. support in host is queried via

[PATCH 0/2] QEMU kvm: Adding paravirtual spinlock support for x86.

2012-03-23 Thread Raghavendra K T
The patch, extends KVM-hypervisor and Linux guest running on KVM-hypervisor to support pv-ticket spinlocks. PV ticket spinlock helps to solve Lock Holder Preemption problem discussed in http://www.amd64.org/fileadmin/user_upload/pub/LHP-commented_slides.pdf. When spinlock is contended,a guest

[PATCH 1/2] QEMU kvm: Add PV_UNHALT feature support

2012-03-23 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com Extend the KVM Hypervisor to enable PVLOCK_KICK feature that allows a vcpu to kick the halted vcpu to continue with execution in PV ticket spinlock. Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Signed-off-by: Raghavendra K T

[PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- diff --git a/target-i386/cpu.h b/target-i386/cpu.h index a1ed3e7..10286a5 100644

Re: [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Jan Kiszka
On 2012-03-23 09:23, Raghavendra K T wrote: From: Raghavendra K T raghavendra...@linux.vnet.ibm.com MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Err, and where is it actually saved to/restored from the vmstate? You are lacking an extension of the

Re: [Android-virt] [PATCH] ARM: KVM: Emulate ID_DFR0 to say we don't support anything.

2012-03-23 Thread Peter Maydell
On 23 March 2012 00:38, Rusty Russell rusty.russ...@linaro.org wrote: The guest should be checking this before trying to use performance monitors, for example. Signed-off-by: Rusty Russell rusty.russ...@linaro.org Does this code get used currently? I thought we hadn't enabled trapping for

Re: [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Raghavendra K T
On 03/23/2012 02:27 PM, Jan Kiszka wrote: On 2012-03-23 09:23, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Err, and where is it actually saved to/restored from the

Re: WARNING: at arch/x86/kernel/smp.c:119 native_smp_send_reschedule+0x25/0x43()

2012-03-23 Thread Sasha Levin
I'm just wondering about the status of the patches to fix this issue, this is still happening on linux-next. On Fri, Feb 10, 2012 at 11:04 PM, Don Zickus dzic...@redhat.com wrote: On Fri, Feb 10, 2012 at 09:36:03PM +0100, Peter Zijlstra wrote: On Fri, 2012-02-10 at 15:31 -0500, Don Zickus

Re: [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Raghavendra K T
On 03/23/2012 02:27 PM, Jan Kiszka wrote: On 2012-03-23 09:23, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Err, and where is it actually saved to/restored from the

Re: WARNING: at arch/x86/kernel/smp.c:119 native_smp_send_reschedule+0x25/0x43()

2012-03-23 Thread Don Zickus
On Fri, Mar 23, 2012 at 12:47:38PM +0200, Sasha Levin wrote: I'm just wondering about the status of the patches to fix this issue, this is still happening on linux-next. I got distracted with other stuff. I have been running code that does the following in the shutdown path:

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-23 Thread Eduardo Habkost
On Fri, Mar 23, 2012 at 03:49:27AM +, Liu, Jinsong wrote: Eduardo Habkost wrote: [1] From Documentation/virtual/kvm/api.txt: KVM_GET_SUPPORTED_CPUID [...] This ioctl returns x86 cpuid features which are supported by both the hardware and kvm. Userspace can use the information

Re: [v3.0.y 2/2] KVM: x86: fix missing checks in syscall emulation

2012-03-23 Thread Marcelo Tosatti
On Thu, Mar 22, 2012 at 09:50:44AM +0100, Stefan Bader wrote: From 30870b1a5d29c07b75843c0b667fa29a63d818a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:04 +0100 Subject: [PATCH 8/8] KVM: x86: fix missing checks

Re: [v3.0.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-23 Thread Marcelo Tosatti
On Thu, Mar 22, 2012 at 09:50:43AM +0100, Stefan Bader wrote: From eaee58e1433e1b16e686cfcdcbc207d4310a239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:03 +0100 Subject: [PATCH 7/8] KVM: x86: extend struct

RE: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-23 Thread Liu, Jinsong
Eduardo Habkost wrote: On Fri, Mar 23, 2012 at 03:49:27AM +, Liu, Jinsong wrote: Eduardo Habkost wrote: [1] From Documentation/virtual/kvm/api.txt: KVM_GET_SUPPORTED_CPUID [...] This ioctl returns x86 cpuid features which are supported by both the hardware and kvm. Userspace can use

More than four serial ports

2012-03-23 Thread Andreas Haralambopoulos
Hi All, I am trying to assign more than four serial ports to a windows xp guest and seems that some limitations exists See following error error: internal error process exited while connecting to monitor: qemu-system-x86_64: -device isa-serial,chardev=charserial4,id=serial4: Device

preventing arbitrary virtual function assignment

2012-03-23 Thread Scott
I'm really stymied by this issue so thanks in advance for any help! Problem statement: The virtual functions of an SR-IOV NIC are not being assigned assigned as specified in the VM guest's XML definitions. Data Points: Server Information: HP ProLiant DL165 G7 Ethernet Card Information: Intel

[PULL net] vhost-net/virtio: fixes for 3.4

2012-03-23 Thread Michael S. Tsirkin
Hi David, The following changes since commit 5ffca28a4ac7abb8a254fafe6bd03b2f83667df7: Merge git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs (2012-02-27 07:59:33 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost-net

Re: [v3.0.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-23 Thread Greg KH
On Thu, Mar 22, 2012 at 09:50:43AM +0100, Stefan Bader wrote: From eaee58e1433e1b16e686cfcdcbc207d4310a239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:03 +0100 Subject: [PATCH 7/8] KVM: x86: extend struct

Re: [v3.0.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-23 Thread Stefan Bader
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 23.03.2012 18:22, Greg KH wrote: On Thu, Mar 22, 2012 at 09:50:43AM +0100, Stefan Bader wrote: From eaee58e1433e1b16e686cfcdcbc207d4310a239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de

Re: [v3.0.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-23 Thread Greg KH
On Fri, Mar 23, 2012 at 06:47:38PM +0100, Stefan Bader wrote: On 23.03.2012 18:22, Greg KH wrote: On Thu, Mar 22, 2012 at 09:50:43AM +0100, Stefan Bader wrote: From eaee58e1433e1b16e686cfcdcbc207d4310a239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?=

Re: [Qemu-devel] Can VMX provide real mode support?

2012-03-23 Thread Luiz Capitulino
On Wed, 21 Mar 2012 15:48:43 +0200 Avi Kivity a...@redhat.com wrote: On 03/21/2012 03:40 PM, Jan Kiszka wrote: On 2012-03-21 13:38, GaoYi wrote: Hi Jan, Since the newest Intel-VT supports the guest OS under the real mode, which was already supported in AMD-V, can the VMX in

Re: [RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-23 Thread Thomas Lendacky
I ran a series of TCP_RR, UDP_RR, TCP_STREAM and TCP_MAERTS tests against the recent vhost patches. For simplicity, the patches submitted by Anthony that increase the number of threads per vhost instance I will call multi-worker and the patches submitted by Shirley that provide a vhost thread per

Re: [PULL net] vhost-net/virtio: fixes for 3.4

2012-03-23 Thread David Miller
From: Michael S. Tsirkin m...@redhat.com Date: Fri, 23 Mar 2012 17:28:07 +0200 The following changes since commit 5ffca28a4ac7abb8a254fafe6bd03b2f83667df7: Merge git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs (2012-02-27 07:59:33 -0800) are available in the git repository at:

Re: [RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-23 Thread Rick Jones
On 03/23/2012 11:32 AM, Thomas Lendacky wrote: I ran a series of TCP_RR, UDP_RR, TCP_STREAM and TCP_MAERTS tests against the recent vhost patches. For simplicity, the patches submitted by Anthony that increase the number of threads per vhost instance I will call multi-worker and the patches

Re: [RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-23 Thread Thomas Lendacky
On Friday, March 23, 2012 12:00:54 PM Rick Jones wrote: On 03/23/2012 11:32 AM, Thomas Lendacky wrote: I ran a series of TCP_RR, UDP_RR, TCP_STREAM and TCP_MAERTS tests against the recent vhost patches. For simplicity, the patches submitted by Anthony that increase the number of threads per

Re: [RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-23 Thread Rick Jones
Yeah, it becomes a question of time. I run each test 3 times and average the results, so to run the full suite takes a long time. I've found the walk up the instance count with the interim results emitted allows me quicker overall run time than launching all the netperfs at once with a

Re: preventing arbitrary virtual function assignment

2012-03-23 Thread Alex Williamson
On Fri, 2012-03-23 at 11:59 -0400, Scott wrote: I'm really stymied by this issue so thanks in advance for any help! Problem statement: The virtual functions of an SR-IOV NIC are not being assigned assigned as specified in the VM guest's XML definitions. Data Points: Server Information:

Re: [Android-virt] [PATCH] ARM: KVM: Emulate ID_DFR0 to say we don't support anything.

2012-03-23 Thread Rusty Russell
On Fri, 23 Mar 2012 09:04:27 +, Peter Maydell peter.mayd...@linaro.org wrote: On 23 March 2012 00:38, Rusty Russell rusty.russ...@linaro.org wrote: The guest should be checking this before trying to use performance monitors, for example. Signed-off-by: Rusty Russell

kvm io performance after kernel 3.2/3.3

2012-03-23 Thread Michael
to launch VM: qemu-system-x86_64 -m 512 -drive file=/Virtual/sql.raw,if=virtio,cache=none -enable-kvm or raw lvm disk: qemu-system-x86_64 -m 512 -drive file=/dev/V1/sqltest,if=virtio,cache=none -enable-kvm than in VM: time cat 20120323.sql | psql dbtest -U dbtest results: kernel 3.0.25 real

Re: [RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-23 Thread David Ahern
On 3/23/12 12:32 PM, Thomas Lendacky wrote: Quick description of the tests: TCP_RR and UDP_RR using 256 byte request/response size in 1, 10, 30 and 60 instances TCP_STREAM and TCP_MAERTS using 256, 1K, 4K and 16K message sizes and 1 and 4 instances Remote host to VM using 1, 4,