All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] make virt_spin_lock() a pvops function
@ 2017-09-05 13:24 ` Juergen Gross
  0 siblings, 0 replies; 56+ messages in thread
From: Juergen Gross @ 2017-09-05 13:24 UTC (permalink / raw)
  To: linux-kernel, xen-devel, x86, virtualization
  Cc: jeremy, chrisw, akataria, rusty, boris.ostrovsky, hpa, tglx,
	mingo, peterz, longman, Juergen Gross

With virt_spin_lock() being a pvops function the bare metal case can be
optimized by patching the call away completely. In case a kernel running
as a guest it can decide whether to use paravitualized spinlocks, the
current fallback to the unfair test-and-set scheme, or to mimic the
bare metal behavior.

Juergen Gross (4):
  paravirt: add generic _paravirt_false() function
  paravirt: switch vcpu_is_preempted to use _paravirt_false() on bare
    metal
  paravirt: add virt_spin_lock pvops function
  paravirt,xen: correct xen_nopvspin case

 arch/x86/include/asm/paravirt.h       |  5 ++++
 arch/x86/include/asm/paravirt_types.h |  3 +++
 arch/x86/include/asm/qspinlock.h      | 48 ++++++++++++++++++++++++-----------
 arch/x86/kernel/paravirt-spinlocks.c  | 22 ++++++++--------
 arch/x86/kernel/paravirt.c            |  7 +++++
 arch/x86/kernel/paravirt_patch_32.c   | 18 ++++++-------
 arch/x86/kernel/paravirt_patch_64.c   | 17 +++++--------
 arch/x86/kernel/smpboot.c             |  2 ++
 arch/x86/xen/spinlock.c               |  2 ++
 9 files changed, 79 insertions(+), 45 deletions(-)

-- 
2.12.3

^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2017-09-06 13:11 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 13:24 [PATCH 0/4] make virt_spin_lock() a pvops function Juergen Gross
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:24 ` [PATCH 1/4] paravirt: add generic _paravirt_false() function Juergen Gross
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:24 ` [PATCH 2/4] paravirt: switch vcpu_is_preempted to use _paravirt_false() on bare metal Juergen Gross
2017-09-05 13:24   ` Juergen Gross
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:24 ` [PATCH 3/4] paravirt: add virt_spin_lock pvops function Juergen Gross
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:55   ` Peter Zijlstra
2017-09-05 13:55     ` Peter Zijlstra
2017-09-05 14:01     ` Juergen Gross
2017-09-05 14:01       ` Juergen Gross
2017-09-05 14:01     ` Juergen Gross
2017-09-05 13:55   ` Peter Zijlstra
2017-09-05 14:02   ` Waiman Long
2017-09-05 14:02   ` Waiman Long
2017-09-05 14:08     ` Peter Zijlstra
2017-09-05 14:08       ` Peter Zijlstra
2017-09-05 14:19       ` Waiman Long
2017-09-05 14:19       ` Waiman Long
2017-09-05 14:19       ` Waiman Long
2017-09-05 14:08     ` Peter Zijlstra
2017-09-05 14:02   ` Waiman Long
2017-09-05 14:10   ` Waiman Long
2017-09-05 14:10   ` Waiman Long
2017-09-05 14:10   ` Waiman Long
2017-09-05 14:18     ` Juergen Gross
2017-09-05 14:18     ` Juergen Gross
2017-09-05 14:18     ` Juergen Gross
2017-09-05 14:24       ` Waiman Long
2017-09-05 14:24       ` Waiman Long
2017-09-05 14:24         ` Waiman Long
2017-09-05 14:31         ` Waiman Long
2017-09-05 14:31           ` Waiman Long
2017-09-05 14:42           ` Juergen Gross
2017-09-05 14:42           ` Juergen Gross
2017-09-05 14:42           ` Juergen Gross
2017-09-06  7:08           ` Peter Zijlstra
2017-09-06  7:08           ` Peter Zijlstra
2017-09-06  7:08           ` Peter Zijlstra
2017-09-06 12:44             ` Waiman Long
2017-09-06 12:44             ` Waiman Long
2017-09-06 13:06               ` Peter Zijlstra
2017-09-06 13:06               ` Peter Zijlstra
2017-09-06 13:06               ` Peter Zijlstra
2017-09-06 13:11                 ` Waiman Long
2017-09-06 13:11                 ` Waiman Long
2017-09-06 13:11                 ` Waiman Long
2017-09-06 12:44             ` Waiman Long
2017-09-05 14:31         ` Waiman Long
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:24 ` [PATCH 4/4] paravirt,xen: correct xen_nopvspin case Juergen Gross
2017-09-05 13:24 ` Juergen Gross
2017-09-05 13:24 ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.