[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH RFC v6 10/11] pvqspinlock, x86: Enable qspinlock PV support for KVM
 
- To: Waiman Long <Waiman.Long@xxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>,	Ingo Molnar <mingo@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, 	Arnd Bergmann <arnd@xxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>
 
- From: Paolo Bonzini <pbonzini@xxxxxxxxxx>
 
- Date: Thu, 13 Mar 2014 14:59:26 +0100
 
- Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>,	Raghavendra K T <raghavendra.kt@xxxxxxxxxxxxxxxxxx>,	Gleb Natapov <gleb@xxxxxxxxxx>, Aswin Chandramouleeswaran <aswin@xxxxxx>,	Andi Kleen <andi@xxxxxxxxxxxxxx>, Michel Lespinasse <walken@xxxxxxxxxx>,	Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>,	linux-arch@xxxxxxxxxxxxxxx, kvm@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx,	xen-devel@xxxxxxxxxxxxxxxxxxxx,	"Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx>,	Scott J Norton <scott.norton@xxxxxx>,	Rusty Russell <rusty@xxxxxxxxxxxxxxx>,	Steven Rostedt <rostedt@xxxxxxxxxxx>, Chris Wright <chrisw@xxxxxxxxxxxx>,	Alok Kataria <akataria@xxxxxxxxxx>,	virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx,	Chegu Vinod <chegu_vinod@xxxxxx>,	Oleg Nesterov <oleg@xxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx,	David Vrabel <david.vrabel@xxxxxxxxxx>,	Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
 
- Delivery-date: Thu, 13 Mar 2014 13:59:42 +0000
 
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
 
 
 
Il 12/03/2014 19:54, Waiman Long ha scritto:
 
@@ -807,8 +889,13 @@ void __init kvm_spinlock_init(void)
        if (!kvm_para_has_feature(KVM_FEATURE_PV_UNHALT))
                return;
+#ifdef CONFIG_QUEUE_SPINLOCK
+       pv_lock_ops.kick_cpu = kvm_kick_cpu_type;
+       pv_lock_ops.hibernate = kvm_hibernate;
+#else
        pv_lock_ops.lock_spinning = PV_CALLEE_SAVE(kvm_lock_spinning);
        pv_lock_ops.unlock_kick = kvm_unlock_kick;
+#endif
 
This should also disable the unfair path.
Paolo
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
 
    
     |