[PATCH RFC V3 0/4] kvm : Paravirt-spinlock support for KVM guests

2011-11-30 Thread Raghavendra K T
Diestelhorst stephan.diestelho...@amd.com - enabling 32 bit guests - splitted patches into two more chunks Srivatsa Vaddagiri, Suzuki Poulose, Raghavendra K T (4): Add debugfs support to print u32-arrays in debugfs Add a hypercall to KVM hypervisor to support pv-ticketlocks Added configuration

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

2011-11-30 Thread Raghavendra K T
the presence of this feature to guest via cpuid. Patch to qemu will be sent separately. There is no Xen/KVM hypercall interface to await kick from. 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

[PATCH RFC V3 4/4] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2011-11-30 Thread Raghavendra K T
. 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/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index 8b1d65d..7e419ad 100644 --- a/arch/x86

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-01 Thread Raghavendra K T
[ CCing Jeremy's new email ID ] Hi Avi, Thanks for review and inputs. On 12/01/2011 04:41 PM, Avi Kivity wrote: On 11/30/2011 10:59 AM, Raghavendra K T wrote: The hypercall needs to be documented in Documentation/virtual/kvm/hypercalls.txt. Yes, Sure 'll document. hypercalls.txt is a new

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-04 Thread Raghavendra K T
On 12/02/2011 01:20 AM, Raghavendra K T wrote: Have you tested it on AMD machines? There are some differences in the hypercall infrastructure there. Yes. 'll test on AMD machine and update on that. I tested the code on 64 bit Dual-Core AMD Opteron machine, and it is working. - Raghu

Re: [PATCH RFC V3 4/4] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2011-12-05 Thread Raghavendra K T
On 12/06/2011 08:57 AM, Konrad Rzeszutek Wilk wrote: +static inline void add_stats(enum kvm_contention_stat var, int val) You probably want 'int val' to be 'u32 val' as that is the type in contention_stats. Yes. Thanks for pointing, as its cumulative. It is indeed u32 in #else :).I 'll

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-07 Thread Raghavendra K T
On 12/07/2011 04:18 PM, Marcelo Tosatti wrote: On Wed, Nov 30, 2011 at 02:29:59PM +0530, Raghavendra K T wrote: +/* + * kvm_pv_kick_cpu_op: Kick a vcpu. + * + * @cpu - vcpu to be kicked. + */ +static void kvm_pv_kick_cpu_op(struct kvm *kvm, int cpu) +{ + struct kvm_vcpu *vcpu

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-07 Thread Raghavendra K T
On 12/07/2011 06:03 PM, Marcelo Tosatti wrote: On Wed, Dec 07, 2011 at 05:24:59PM +0530, Raghavendra K T wrote: On 12/07/2011 04:18 PM, Marcelo Tosatti wrote: Yes you are right. It was potentially racy and it was harmful too!. I had observed that it was stalling the CPU before I introduced

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-07 Thread Raghavendra K T
On 12/07/2011 08:22 PM, Avi Kivity wrote: On 12/07/2011 03:39 PM, Marcelo Tosatti wrote: Also I think we can keep the kicked flag in vcpu-requests, no need for new storage. Was going to suggest it but it violates the currently organized processing of entries at the beginning of

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-08 Thread Raghavendra K T
On 12/02/2011 01:20 AM, Raghavendra K T wrote: +/* + * kvm_pv_kick_cpu_op: Kick a vcpu. + * + * @cpu - vcpu to be kicked. + */ +static void kvm_pv_kick_cpu_op(struct kvm *kvm, int cpu) +{ + struct kvm_vcpu *vcpu = kvm_get_vcpu(kvm, cpu); There is no guarantee that guest cpu numbers match host

Re: [PATCH RFC V3 2/4] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2011-12-09 Thread Raghavendra K T
On 12/08/2011 03:10 PM, Avi Kivity wrote: On 12/07/2011 06:46 PM, Raghavendra K T wrote: On 12/07/2011 08:22 PM, Avi Kivity wrote: On 12/07/2011 03:39 PM, Marcelo Tosatti wrote: Also I think we can keep the kicked flag in vcpu-requests, no need for new storage. Was going to suggest

[PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-14 Thread Raghavendra K T
guests - splitted patches into two more chunks Srivatsa Vaddagiri, Suzuki Poulose, Raghavendra K T (5): Add debugfs support to print u32-arrays in debugfs Add a hypercall to KVM hypervisor to support pv-ticketlocks Added configuration support to enable debug information for KVM Guests pv

[PATCH RFC V4 1/5] debugfs: Add support to print u32 array in debugfs

2012-01-14 Thread Raghavendra K T
Add debugfs support to print u32-arrays in debugfs. 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 raghavendra

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

2012-01-14 Thread Raghavendra K T
the presence of this feature to guest via cpuid. Patch to qemu will be sent separately. 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/include/asm

[PATCH RFC V4 3/5] kvm guest : Added configuration support to enable debug information for KVM Guests

2012-01-14 Thread Raghavendra K T
Added configuration support to enable debug information for KVM Guests in debugfs 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

[PATCH RFC V4 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-01-14 Thread Raghavendra K T
KVM_HC_KICK_CPU hypercall to wakeup waiting/halted vcpu. 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/include/asm/kvm_para.h b/arch/x86/include/asm

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

2012-01-14 Thread Raghavendra K T
ioctl(KVM_CHECK_EXTENSION, KVM_CAP_PVLOCK_KICK) A minimal Documentation and template is added for hypercalls. Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com --- diff --git a/Documentation/virtual/kvm/api.txt b/Documentation

Re: [PATCH RFC V4 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-01-15 Thread Raghavendra K T
On 01/16/2012 08:42 AM, Alexander Graf wrote: On 14.01.2012, at 19:26, Raghavendra K T wrote: Extends Linux guest running on KVM hypervisor to support pv-ticketlocks. During smp_boot_cpus paravirtualied KVM guest detects if the hypervisor has required feature (KVM_FEATURE_PVLOCK_KICK

Re: [PATCH RFC V4 2/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-01-16 Thread Raghavendra K T
On 01/16/2012 08:54 AM, Alexander Graf wrote: On 14.01.2012, at 19:25, Raghavendra K T wrote: Add a hypercall to KVM hypervisor to support pv-ticketlocks 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

Re: [PATCH RFC V4 5/5] Documentation/kvm : Add documentation on Hypercalls and features used for PV spinlock

2012-01-16 Thread Raghavendra K T
On 01/16/2012 08:53 AM, Alexander Graf wrote: On 14.01.2012, at 19:27, Raghavendra K T wrote: Add Documentation on CPUID, KVM_CAP_PVLOCK_KICK, and Hypercalls supported. KVM_HC_KICK_CPU hypercall added to wakeup halted vcpu in paravirtual spinlock enabled guest. KVM_FEATURE_PVLOCK_KICK

Re: [PATCH RFC V4 2/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-01-16 Thread Raghavendra K T
On 01/16/2012 02:33 PM, Avi Kivity wrote: +/* + * kvm_pv_kick_cpu_op: Kick a vcpu. + * + * @apicid - apicid of vcpu to be kicked. + */ +static void kvm_pv_kick_cpu_op(struct kvm *kvm, int apicid) +{ + struct kvm_vcpu *vcpu = NULL; + int i; + + kvm_for_each_vcpu(i, vcpu, kvm) {

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-16 Thread Raghavendra K T
On 01/16/2012 09:27 AM, Alexander Graf wrote: [...] Result for PLE machine: == Machine : IBM xSeries with Intel(R) Xeon(R) X7560 2.27GHz CPU with 32/64 core, with 8 online cores and 4*64GB RAM Kernbench: BASEBASE+patch

Re: [PATCH RFC V4 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-01-16 Thread Raghavendra K T
On 01/16/2012 02:35 PM, Avi Kivity wrote: On 01/14/2012 08:26 PM, Raghavendra K T wrote: Extends Linux guest running on KVM hypervisor to support pv-ticketlocks. During smp_boot_cpus paravirtualied KVM guest detects if the hypervisor has required feature (KVM_FEATURE_PVLOCK_KICK) to support

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-16 Thread Raghavendra K T
On 01/16/2012 07:53 PM, Alexander Graf wrote: On 16.01.2012, at 15:20, Srivatsa Vaddagiri wrote: * Alexander Grafag...@suse.de [2012-01-16 04:57:45]: Speaking of which - have you benchmarked performance degradation of pv ticket locks on bare metal? You mean, run kernel on bare metal

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-16 Thread Raghavendra K T
On 01/16/2012 07:19 PM, Avi Kivity wrote: On 01/16/2012 03:43 PM, Raghavendra K T wrote: Dbench: Throughput is in MB/sec NRCLIENTS BASEBASE+patch %improvement mean (sd) mean (sd) 8 1.101190 (0.875082) 1.700395 (0.846809

Re: [PATCH RFC V4 5/5] Documentation/kvm : Add documentation on Hypercalls and features used for PV spinlock

2012-01-17 Thread Raghavendra K T
On 01/17/2012 06:21 PM, Gleb Natapov wrote: On Tue, Jan 17, 2012 at 05:56:50PM +0530, Srivatsa Vaddagiri wrote: * Gleb Natapovg...@redhat.com [2012-01-17 11:14:13]: The problem case I was thinking of was when guest VCPU would have issued HLT with interrupts disabled. I guess one option is to

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-17 Thread Raghavendra K T
On 01/17/2012 12:12 AM, Alexander Graf wrote: On 16.01.2012, at 19:38, Raghavendra K T wrote: On 01/16/2012 07:53 PM, Alexander Graf wrote: On 16.01.2012, at 15:20, Srivatsa Vaddagiri wrote: * Alexander Grafag...@suse.de [2012-01-16 04:57:45]: Speaking of which - have you benchmarked

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-17 Thread Raghavendra K T
On 01/17/2012 11:09 PM, Alexander Graf wrote: On 17.01.2012, at 18:27, Raghavendra K T wrote: On 01/17/2012 12:12 AM, Alexander Graf wrote: On 16.01.2012, at 19:38, Raghavendra K T wrote: On 01/16/2012 07:53 PM, Alexander Graf wrote: On 16.01.2012, at 15:20, Srivatsa Vaddagiri wrote

Re: [PATCH RFC V4 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-01-17 Thread Raghavendra K T
On 01/17/2012 04:32 PM, Marcelo Tosatti wrote: On Sat, Jan 14, 2012 at 11:56:46PM +0530, Raghavendra K T wrote: Extends Linux guest running on KVM hypervisor to support pv-ticketlocks. diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index c7b05fc..4d7a950 100644 --- a/arch/x86/kvm/x86.c

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-17 Thread Raghavendra K T
On 01/18/2012 03:27 AM, Dave Hansen wrote: On 01/17/2012 10:36 AM, Raghavendra K T wrote: It was a quick test. two iteration of kernbench (=6runs) and had ensured cache is cleared. echo 1 /proc/sys/vm/drop_caches ccache -C. Yes may be I can run test as you mentioned.. echo 3 /proc/sys/vm

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-18 Thread Raghavendra K T
On 01/17/2012 05:29 AM, Jeremy Fitzhardinge wrote: On 01/16/2012 07:55 PM, Avi Kivity wrote: On 01/16/2012 08:40 AM, Jeremy Fitzhardinge wrote: That means we're spinning for n cycles, then notify the spinlock holder that we'd like to get kicked and go sleeping. While I'm pretty sure that it

Re: [PATCH RFC V4 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-01-24 Thread Raghavendra K T
On 01/24/2012 07:38 PM, Avi Kivity wrote: On 01/18/2012 11:52 PM, Jeremy Fitzhardinge wrote: On 01/19/2012 12:54 AM, Srivatsa Vaddagiri wrote: That logic relies on the kick being level triggered, so that kick before block will cause the block to fall out immediately. If you're using hlt as

Re: [PATCH RFC V4 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-01-24 Thread Raghavendra K T
On 01/18/2012 12:27 AM, Raghavendra K T wrote: On 01/17/2012 04:32 PM, Marcelo Tosatti wrote: On Sat, Jan 14, 2012 at 11:56:46PM +0530, Raghavendra K T wrote: [...] + || (vcpu-requests ~(1ULKVM_REQ_PVLOCK_KICK)) + || need_resched() || signal_pending(current)) { vcpu-mode = OUTSIDE_GUEST_MODE

Re: [PATCH RFC V4 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-01-25 Thread Raghavendra K T
On 01/25/2012 10:05 PM, Konrad Rzeszutek Wilk wrote: So it seems we have worst case overhead of around 8%. But we see improvement of at-least 15% once when little more time is spent in critical section. Is this with collecting the histogram information about spinlocks? We found that if you

[PATCH RFC V6 1/11] x86/spinlock: replace pv spinlocks with pv ticketlocks

2012-03-21 Thread Raghavendra K T
jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/paravirt.h | 32 arch/x86/include/asm/paravirt_types.h | 10 ++ arch/x86/include/asm/spinlock.h

[PATCH RFC V6 11/11] xen: enable PV ticketlocks on HVM Xen

2012-03-21 Thread Raghavendra K T
From: Stefano Stabellini stefano.stabell...@eu.citrix.com Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/smp.c |1 + 1 files changed

[PATCH RFC V6 4/11] xen: defer spinlock setup until boot CPU setup

2012-03-21 Thread Raghavendra K T
...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/smp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 501d4e0..e85d3ee 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -201,6 +201,7

[PATCH RFC V6 5/11] xen/pvticketlock: Xen implementation for PV ticket locks

2012-03-21 Thread Raghavendra K T
jeremy.fitzhardi...@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- arch/x86/xen/spinlock.c | 344 +++ 1 files changed, 77 insertions(+), 267 deletions(-) diff --git

[PATCH RFC V6 7/11] x86/pvticketlock: use callee-save for lock_spinning

2012-03-21 Thread Raghavendra K T
-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/paravirt.h |2 +- arch/x86/include/asm/paravirt_types.h |2 +- arch/x86/kernel/paravirt-spinlocks.c |2 +- arch/x86/xen/spinlock.c |3 ++- 4 files changed, 5 insertions(+), 4 deletions

[PATCH RFC V6 2/11] x86/ticketlock: don't inline _spin_unlock when using paravirt spinlocks

2012-03-21 Thread Raghavendra K T
From: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com The code size expands somewhat, and its probably better to just call a function rather than inline it. Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com

[PATCH RFC V6 8/11] x86/pvticketlock: when paravirtualizing ticket locks, increment by 2

2012-03-21 Thread Raghavendra K T
systems are probably specially built for the hardware rather than a generic distro kernel. Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/spinlock.h | 10 +- arch/x86/include

[PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-03-21 Thread Raghavendra K T
From: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Changes since last posting: (Raghavendra K T) [ - Rebased to linux-3.3-rc6. - used function+enum in place of macro (better type checking) - use cmpxchg while resetting zero status for possible race [suggested by Dave Hansen

[PATCH RFC V6 3/11] x86/ticketlock: collapse a layer of functions

2012-03-21 Thread Raghavendra K T
-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/spinlock.h | 35 +-- 1 files changed, 5 insertions(+), 30 deletions(-) diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h index 7e66b85..f6442f4 100644 --- a/arch/x86

[PATCH RFC V6 9/11] x86/ticketlock: add slowpath logic

2012-03-21 Thread Raghavendra K T
Fitzhardinge jeremy.fitzhardi...@citrix.com Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Stephan Diestelhorst stephan.diestelho...@amd.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm

Re: [PATCH RFC V6 1/11] x86/spinlock: replace pv spinlocks with pv ticketlocks

2012-03-21 Thread Raghavendra K T
On 03/21/2012 08:03 PM, Attilio Rao wrote: On 21/03/12 14:25, Stephan Diestelhorst wrote: On Wednesday 21 March 2012, 13:49:28 Attilio Rao wrote: On 21/03/12 13:22, Stephan Diestelhorst wrote: On Wednesday 21 March 2012, 13:04:25 Attilio Rao wrote: On 21/03/12 10:20, Raghavendra K T wrote

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

2012-03-23 Thread Raghavendra K T
K T (6): Add debugfs support to print u32-arrays in debugfs Add a hypercall to KVM hypervisor to support pv-ticketlocks Add unhalt msr to aid migration Added configuration support to enable debug information for KVM Guests pv-ticketlock support for linux guests running on KVM hypervisor

[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 raghavendra

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

2012-03-23 Thread Raghavendra K T
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/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index 734c376..9234f13 100644 --- a/arch/x86/include/asm/kvm_para.h +++ b/arch/x86/include/asm/kvm_para.h

[PATCH RFC V5 5/6] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-03-23 Thread Raghavendra K T
to wakeup waiting/halted vcpu. 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/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index 46f9751

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-03-27 Thread Raghavendra K T
On 03/26/2012 07:55 PM, Avi Kivity wrote: On 03/21/2012 12:20 PM, Raghavendra K T wrote: From: Jeremy Fitzhardingejeremy.fitzhardi...@citrix.com [...] This series provides a Xen implementation, but it should be straightforward to add a KVM implementation as well. Looks like a good

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-03-28 Thread Raghavendra K T
On 03/28/2012 09:39 PM, Alan Meadows wrote: I am happy to see this issue receiving some attention and second the wish to see these patches be considered for further review and inclusion in an upcoming release. Overcommit is not as common in enterprise and single-tenant virtualized environments

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

2012-03-28 Thread Raghavendra K T
On 03/23/2012 01:35 PM, Raghavendra K T wrote: 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

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-03-30 Thread Raghavendra K T
On 03/29/2012 11:33 PM, Raghavendra K T wrote: On 03/29/2012 03:28 PM, Avi Kivity wrote: On 03/28/2012 08:21 PM, Raghavendra K T wrote: I really like below ideas. Thanks for that!. - from the PLE handler, don't wake up a vcpu that is sleeping because it is waiting for a kick How about

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-03-30 Thread Raghavendra K T
On 03/31/2012 01:56 AM, H. Peter Anvin wrote: What is the current status of this patchset? I haven't looked at it too closely because I have been focused on 3.4 up until now... Thanks Peter, Currently targeting the patchset for next merge window. IMO These patches are in good shape now. I'

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-04-01 Thread Raghavendra K T
On 04/01/2012 07:23 PM, Avi Kivity wrote: On 04/01/2012 04:48 PM, Raghavendra K T wrote: I have patch something like below in mind to try: I'm interested in how PLE does vs. your patches, both with PLE enabled and disabled. Sure. will update with the experimental results

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-04-02 Thread Raghavendra K T
On 04/01/2012 07:23 PM, Avi Kivity wrote: On 04/01/2012 04:48 PM, Raghavendra K T wrote: I have patch something like below in mind to try: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d3b98b1..5127668 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1608,15

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-04-02 Thread Raghavendra K T
On 04/02/2012 03:21 PM, Raghavendra K T wrote: On 04/01/2012 07:23 PM, Avi Kivity wrote: On 04/01/2012 04:48 PM, Raghavendra K T wrote: I have patch something like below in mind to try: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5127668..3fa912a 100644 --- a/virt/kvm

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-04-05 Thread Raghavendra K T
On 04/01/2012 07:23 PM, Avi Kivity wrote: On 04/01/2012 04:48 PM, Raghavendra K T wrote: I have patch something like below in mind to try: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d3b98b1..5127668 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1608,15

Re: [PATCH RFC V6 0/11] Paravirtualized ticketlocks

2012-04-05 Thread Raghavendra K T
On 04/05/2012 02:31 PM, Avi Kivity wrote: On 04/02/2012 12:51 PM, Raghavendra K T wrote: On 04/01/2012 07:23 PM, Avi Kivity wrote: On 04/01/2012 04:48 PM, Raghavendra K T wrote: I have patch something like below in mind to try: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index

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

2012-04-16 Thread Raghavendra K T
Sorry for late reply, was on vacation for a week (without IMAP access :( ) On 04/12/2012 05:36 AM, Marcelo Tosatti wrote: On Fri, Mar 23, 2012 at 01:37:04PM +0530, Raghavendra K T wrote: From: Srivatsa Vaddagiriva...@linux.vnet.ibm.com [snip] @@ -1567,6 +1568,9 @@ void kvm_vcpu_block(struct

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

2012-04-17 Thread Raghavendra K T
On 04/12/2012 05:59 AM, Marcelo Tosatti wrote: On Wed, Apr 11, 2012 at 09:06:29PM -0300, Marcelo Tosatti wrote: On Fri, Mar 23, 2012 at 01:37:04PM +0530, Raghavendra K T wrote: From: Srivatsa Vaddagiriva...@linux.vnet.ibm.com [...] barrier(); Is it always OK to erase

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

2012-04-17 Thread Raghavendra K T
On 04/12/2012 05:45 AM, Marcelo Tosatti wrote: On Fri, Mar 23, 2012 at 01:37:26PM +0530, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com [...] Unless there is a reason to use an MSR, should use a normal ioctl such as KVM_{GET,SET}_MP_STATE. I agree

[PATCH RFC V7 0/12] Paravirtualized ticketlocks

2012-04-19 Thread Raghavendra K T
xen/pvticketlock: allow interrupts to be enabled while blocking Raghavendra K T (1): x86/ticketlock: don't inline _spin_unlock when using paravirt spinlocks Andrew Jones (1): split out rate limiting from jump_label.h Stefano Stabellini (1): xen: enable PV ticketlocks on HVM Xen

[PATCH RFC V7 1/12] x86/spinlock: replace pv spinlocks with pv ticketlocks

2012-04-19 Thread Raghavendra K T
jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Tested-by: Attilio Rao attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/paravirt.h | 32 arch/x86/include/asm/paravirt_types.h

[PATCH RFC V7 2/12] x86/ticketlock: don't inline _spin_unlock when using paravirt spinlocks

2012-04-19 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com The code size expands somewhat, and its better to just call a function rather than inline it. Thanks Jeremy for original version of ARCH_NOINLINE_SPIN_UNLOCK config patch, which is simplified. Suggested-by: Linus Torvalds torva...@linux

[PATCH RFC V7 3/12] x86/ticketlock: collapse a layer of functions

2012-04-19 Thread Raghavendra K T
attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/spinlock.h | 35 +-- 1 files changed, 5 insertions(+), 30 deletions(-) diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h

[PATCH RFC V7 5/12] xen/pvticketlock: Xen implementation for PV ticket locks

2012-04-19 Thread Raghavendra K T
jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/spinlock.c | 344 +++ 1 files changed, 77 insertions(+), 267 deletions(-) diff --git

[PATCH RFC V7 7/12] x86/pvticketlock: use callee-save for lock_spinning

2012-04-19 Thread Raghavendra K T
-by: Attilio Rao attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/paravirt.h |2 +- arch/x86/include/asm/paravirt_types.h |2 +- arch/x86/kernel/paravirt-spinlocks.c |2 +- arch/x86/xen/spinlock.c |3 ++- 4

[PATCH RFC V7 9/12] split out rate limiting from jump_label.h

2012-04-19 Thread Raghavendra K T
jump_label.h into a new file, jump_label_ratelimit.h, to resolve the issue. Signed-off-by: Andrew Jones drjo...@redhat.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- include/linux/jump_label.h | 26 +- include/linux/jump_label_ratelimit.h

[PATCH RFC V7 10/12] x86/ticketlock: add slowpath logic

2012-04-19 Thread Raghavendra K T
Fitzhardinge jeremy.fitzhardi...@citrix.com Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Stephan Diestelhorst stephan.diestelho...@amd.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm

[PATCH RFC V7 11/12] xen/pvticketlock: allow interrupts to be enabled while blocking

2012-04-19 Thread Raghavendra K T
-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/spinlock.c | 46 -- 1 files changed, 40 insertions(+), 6

[PATCH RFC V7 12/12] xen: enable PV ticketlocks on HVM Xen

2012-04-19 Thread Raghavendra K T
From: Stefano Stabellini stefano.stabell...@eu.citrix.com Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/smp.c |1 + 1 files changed

[PATCH RFC V6 1/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-04-23 Thread Raghavendra K T
Signed-off-by: Suzuki Poulose suz...@in.ibm.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- diff --git a/arch/ia64/include/asm/kvm_host.h b/arch/ia64/include/asm/kvm_host.h index e35b3a8..3252339 100644 --- a/arch/ia64/include/asm/kvm_host.h +++ b/arch/ia64/include/asm

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

2012-04-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 ioctl

[PATCH RFC V6 0/5] kvm : Paravirt-spinlock support for KVM guests

2012-04-23 Thread Raghavendra K T
for linux guests running on KVM hypervisor Raghavendra K T (2): Fold pv_unhalt flag into GET_MP_STATE ioctl to aid migration Add documentation on Hypercalls and features used for PV spinlock Documentation/virtual/kvm/api.txt|7 + Documentation/virtual/kvm/cpuid.txt |4

[PATCH RFC V6 4/5] kvm : pv-ticketlocks support for linux guests running on KVM hypervisor

2012-04-23 Thread Raghavendra K T
to wakeup waiting/halted vcpu. 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/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h index 5b647ea

[PATCH RFC V6 3/5] kvm guest : Add configuration support to enable debug information for KVM Guests

2012-04-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 35eb2e4..a9ec0da

[PATCH RFC V6 2/5] kvm : Fold pv_unhalt flag into GET_MP_STATE ioctl to aid migration

2012-04-23 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 6faa550..7354c1b 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -5691,7 +5691,9 @@ int

Re: [PATCH RFC V6 1/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-04-26 Thread Raghavendra K T
On 04/24/2012 03:29 PM, Gleb Natapov wrote: On Mon, Apr 23, 2012 at 03:29:47PM +0530, Raghavendra K T wrote: From: Srivatsa Vaddagiriva...@linux.vnet.ibm.com [...] diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 42b7393..edf56d4 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm

Re: [PATCH RFC V6 5/5] Documentation/kvm : Add documentation on Hypercalls and features used for PV spinlock

2012-04-26 Thread Raghavendra K T
On 04/26/2012 09:27 PM, Rob Landley wrote: On 04/23/2012 05:00 AM, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com ... --- /dev/null +++ b/Documentation/virtual/kvm/hypercalls.txt @@ -0,0 +1,59 @@ +KVM Hypercalls Documentation

Re: [PATCH RFC V6 1/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-04-27 Thread Raghavendra K T
On 04/24/2012 03:29 PM, Gleb Natapov wrote: On Mon, Apr 23, 2012 at 03:29:47PM +0530, Raghavendra K T wrote: From: Srivatsa Vaddagiriva...@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

Re: [PATCH RFC V6 1/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-04-30 Thread Raghavendra K T
Thanks Avi, for the review. On 04/29/2012 06:55 PM, Avi Kivity wrote: On 04/23/2012 12:59 PM, Raghavendra K T wrote: From: Srivatsa Vaddagiriva...@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

Re: [PATCH RFC V6 2/5] kvm : Fold pv_unhalt flag into GET_MP_STATE ioctl to aid migration

2012-04-30 Thread Raghavendra K T
On 04/29/2012 06:57 PM, Avi Kivity wrote: On 04/23/2012 01:00 PM, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com Signed-off-by: Raghavendra K Traghavendra...@linux.vnet.ibm.com --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 6faa550..7354c1b 100644

Re: [Xen-devel] [PATCH RFC V7 0/12] Paravirtualized ticketlocks

2012-05-01 Thread Raghavendra K T
On 05/01/2012 06:20 PM, Ian Campbell wrote: On Thu, 2012-04-19 at 21:12 +0100, Raghavendra K T wrote: From: Jeremy Fitzhardingejeremy.fitzhardi...@citrix.com This series replaces the existing paravirtualized spinlock mechanism with a paravirtualized ticketlock mechanism. (targeted for 3.5

Re: [PATCH RFC V6 1/5] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-05-01 Thread Raghavendra K T
On 04/30/2012 01:14 PM, Raghavendra K T wrote: diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 4044ce0..7fc9be6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2147,6 +2147,7 @@ int kvm_dev_ioctl_check_extension(long ext) case KVM_CAP_ASYNC_PF: case KVM_CAP_GET_TSC_KHZ

[PATCH RFC V8 3/17] x86/ticketlock: Collapse a layer of functions

2012-05-02 Thread Raghavendra K T
attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/spinlock.h | 35 +-- 1 files changed, 5 insertions(+), 30 deletions(-) diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h

[PATCH RFC V8 1/17] x86/spinlock: Replace pv spinlocks with pv ticketlocks

2012-05-02 Thread Raghavendra K T
jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Tested-by: Attilio Rao attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/paravirt.h | 32 arch/x86/include/asm/paravirt_types.h

[PATCH RFC V8 0/17] Paravirtualized ticket spinlocks

2012-05-02 Thread Raghavendra K T
-ticketlocks Added configuration support to enable debug information for KVM Guests Paravirtual ticketlock support for linux guests running on KVM hypervisor Raghavendra K T (3): x86/ticketlock: Don't inline _spin_unlock when using paravirt spinlocks Fold pv_unhalt flag into GET_MP_STATE

[PATCH RFC V8 4/17] xen: Defer spinlock setup until boot CPU setup

2012-05-02 Thread Raghavendra K T
...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/smp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 0503c0c..7dc400a 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c @@ -222,6 +222,7

[PATCH RFC V8 2/17] x86/ticketlock: Don't inline _spin_unlock when using paravirt spinlocks

2012-05-02 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com The code size expands somewhat, and its better to just call a function rather than inline it. Thanks Jeremy for original version of ARCH_NOINLINE_SPIN_UNLOCK config patch, which is simplified. Suggested-by: Linus Torvalds torva...@linux

[PATCH RFC V8 5/17] xen/pvticketlock: Xen implementation for PV ticket locks

2012-05-02 Thread Raghavendra K T
jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/spinlock.c | 348 +++ 1 files changed, 78 insertions(+), 270 deletions(-) diff --git

[PATCH RFC V8 7/17] x86/pvticketlock: Use callee-save for lock_spinning

2012-05-02 Thread Raghavendra K T
-by: Attilio Rao attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/paravirt.h |2 +- arch/x86/include/asm/paravirt_types.h |2 +- arch/x86/kernel/paravirt-spinlocks.c |2 +- arch/x86/xen/spinlock.c |3 ++- 4

[PATCH RFC V8 6/17] xen/pvticketlocks: Add xen_nopvspin parameter to disable xen pv ticketlocks

2012-05-02 Thread Raghavendra K T
From: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/spinlock.c | 14

[PATCH RFC V8 8/17] x86/pvticketlock: When paravirtualizing ticket locks, increment by 2

2012-05-02 Thread Raghavendra K T
systems are probably specially built for the hardware rather than a generic distro kernel. Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Tested-by: Attilio Rao attilio@citrix.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm

[PATCH RFC V8 9/17] Split out rate limiting from jump_label.h

2012-05-02 Thread Raghavendra K T
jump_label.h into a new file, jump_label_ratelimit.h, to resolve the issue. Signed-off-by: Andrew Jones drjo...@redhat.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- include/linux/jump_label.h | 26 +- include/linux/jump_label_ratelimit.h

[PATCH RFC V8 10/17] x86/ticketlock: Add slowpath logic

2012-05-02 Thread Raghavendra K T
Fitzhardinge jeremy.fitzhardi...@citrix.com Signed-off-by: Srivatsa Vaddagiri va...@linux.vnet.ibm.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Stephan Diestelhorst stephan.diestelho...@amd.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm

[PATCH RFC V8 11/17] xen/pvticketlock: Allow interrupts to be enabled while blocking

2012-05-02 Thread Raghavendra K T
-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/spinlock.c | 46 -- 1 files changed, 40 insertions(+), 6

[PATCH RFC V8 12/17] xen: Enable PV ticketlocks on HVM Xen

2012-05-02 Thread Raghavendra K T
From: Stefano Stabellini stefano.stabell...@eu.citrix.com Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/xen/smp.c |1 + 1 files changed

[PATCH RFC V8 13/17] kvm hypervisor : Add a hypercall to KVM hypervisor to support pv-ticketlocks

2012-05-02 Thread Raghavendra K T
-by: Suzuki Poulose suz...@in.ibm.com Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/include/asm/kvm_host.h |4 arch/x86/include/asm/kvm_para.h |2 ++ arch/x86/kvm/cpuid.c|3 ++- arch/x86/kvm/x86.c | 37

[PATCH RFC V8 14/17] kvm : Fold pv_unhalt flag into GET_MP_STATE ioctl to aid migration

2012-05-02 Thread Raghavendra K T
From: Raghavendra K T raghavendra...@linux.vnet.ibm.com During migration, any vcpu that got kicked but did not become runnable (still in halted state) should be runnable after migration. Signed-off-by: Raghavendra K T raghavendra...@linux.vnet.ibm.com --- arch/x86/kvm/x86.c |7 ++- 1

  1   2   3   4   >