[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5321B9BE.7050209@redhat.com>
Date: Thu, 13 Mar 2014 14:59:26 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Waiman Long <Waiman.Long@...com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, Arnd Bergmann <arnd@...db.de>,
Peter Zijlstra <peterz@...radead.org>
CC: Jeremy Fitzhardinge <jeremy@...p.org>,
Raghavendra K T <raghavendra.kt@...ux.vnet.ibm.com>,
kvm@...r.kernel.org, virtualization@...ts.linux-foundation.org,
Andi Kleen <andi@...stfloor.org>,
Michel Lespinasse <walken@...gle.com>,
Alok Kataria <akataria@...are.com>, linux-arch@...r.kernel.org,
Gleb Natapov <gleb@...hat.com>, x86@...nel.org,
xen-devel@...ts.xenproject.org,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Scott J Norton <scott.norton@...com>,
Rusty Russell <rusty@...tcorp.com.au>,
Steven Rostedt <rostedt@...dmis.org>,
Chris Wright <chrisw@...s-sol.org>,
Oleg Nesterov <oleg@...hat.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Aswin Chandramouleeswaran <aswin@...com>,
Chegu Vinod <chegu_vinod@...com>, linux-kernel@...r.kernel.org,
David Vrabel <david.vrabel@...rix.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH RFC v6 10/11] pvqspinlock, x86: Enable qspinlock PV support
for KVM
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists