Skip to content

RFC xen/spinlock: make recursive spinlocks a dedicated type

Juergen Gross xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3xen/spinlock: add explicit non-recursive locking functionsxen/arch/arm/mm.c xen/arch/x86/domain.c xen/arch/x86/mm.c +14 more+77 -624 replies
2/3xen/spinlock: split recursive spinlocks from normal onesxen/arch/x86/include/asm/mm.h xen/arch/x86/mm/mm-locks.h xen/arch/x86/mm/p2m-pod.c +4 more+60 -404 replies
3/3xen/spinlock: support higher number of cpusxen/common/spinlock.c xen/include/xen/spinlock.h+10 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] xen/spinlock: make recursive spinlocks a dedicated type

Instead of being able to use normal spinlocks as recursive ones, too, make recursive spinlocks a special lock type.

This will make the spinlock structure smaller in production builds and add type-safety.

Juergen Gross (3):
xen/spinlock: add explicit non-recursive locking functions xen/spinlock: split recursive spinlocks from normal ones xen/spinlock: support higher number of cpus

 xen/arch/arm/mm.c             |  4 +--
 xen/arch/x86/domain.c         | 12 +++----
 xen/arch/x86/include/asm/mm.h |  2 +-
 xen/arch/x86/mm.c             | 12 +++----
 xen/arch/x86/mm/mem_sharing.c |  8 ++---
 xen/arch/x86/mm/mm-locks.h    |  2 +-
 xen/arch/x86/mm/p2m-pod.c     |  6 ++--
 xen/arch/x86/mm/p2m.c         |  4 +--
 xen/arch/x86/numa.c           |  4 +--
 xen/arch/x86/tboot.c          |  4 +--
 xen/common/domain.c           |  6 ++--
 xen/common/domctl.c           |  4 +--
 xen/common/grant_table.c      | 10 +++---
 xen/common/ioreq.c            |  2 +-
 xen/common/memory.c           |  4 +--
 xen/common/page_alloc.c       | 18 +++++-----
 xen/common/spinlock.c         | 22 +++++++-----
 xen/drivers/char/console.c    | 24 ++++++-------
 xen/drivers/passthrough/pci.c |  4 +--
 xen/include/xen/sched.h       |  6 ++--
 xen/include/xen/spinlock.h    | 68 +++++++++++++++++++++++++----------
 21 files changed, 131 insertions(+), 95 deletions(-)
Signature · 1 line
2.35.3