Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v2 0/3] provide asm-generic spinlock
@ 2017-05-15 11:03 David Hildenbrand
  2017-05-15 11:03 ` [kvm-unit-tests PATCH v2 1/3] lib: provide generic spinlock David Hildenbrand
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: David Hildenbrand @ 2017-05-15 11:03 UTC (permalink / raw)
  To: kvm
  Cc: Paolo Bonzini, Radim Krčmář, Thomas Huth, david,
	Laurent Vivier, kvm-ppc

Let's introduce a simple generic version that should be sufficient for
our purposes.

v1 -> v2:
- use __sync_lock_test_and_set() and __sync_lock_release()
-- dropped Thomas' R-b due to the change
- move includes into #define section

David Hildenbrand (3):
  lib: provide generic spinlock
  ppc64: use asm-generic spinlock
  x86: use asm-generic spinlock

 lib/asm-generic/spinlock.h | 16 +++++++++++++++-
 lib/ppc64/asm/spinlock.h   |  7 +------
 lib/ppc64/spinlock.c       | 18 ------------------
 lib/x86/asm/spinlock.h     |  7 +------
 lib/x86/smp.c              | 16 ----------------
 powerpc/Makefile.ppc64     |  1 -
 6 files changed, 17 insertions(+), 48 deletions(-)
 delete mode 100644 lib/ppc64/spinlock.c

-- 
2.9.3

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

end of thread, other threads:[~2017-05-19 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-15 11:03 [kvm-unit-tests PATCH v2 0/3] provide asm-generic spinlock David Hildenbrand
2017-05-15 11:03 ` [kvm-unit-tests PATCH v2 1/3] lib: provide generic spinlock David Hildenbrand
2017-05-15 11:03 ` [kvm-unit-tests PATCH v2 2/3] ppc64: use asm-generic spinlock David Hildenbrand
2017-05-15 11:03 ` [kvm-unit-tests PATCH v2 3/3] x86: " David Hildenbrand
2017-05-19 16:21 ` [kvm-unit-tests PATCH v2 0/3] provide " Radim Krčmář

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox