Skip to content

xen/spinlock: cleanup struct spinlock

Juergen Gross xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/spinlock: use lock address for lock debug functionsxen/common/spinlock.c xen/include/xen/rwlock.h xen/include/xen/spinlock.h+30 -242 replies
2/2xen/spinlock: merge recurse_cpu and debug.cpu fields in struct spinlockxen/arch/x86/mm/mm-locks.h xen/common/spinlock.c xen/include/xen/spinlock.h+52 -456 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] xen/spinlock: cleanup struct spinlock

The spinlock data structure contains two cpu fields for storing the cpu number of the lock holder (one for debug purposes and one for recursive spinlocks). Merging them removes a build time limitation for supporting higher cpu numbers than today.

This series is NOT using more bits for storing the cpu number, but doing that would now be possible. Taking rwlocks into account it would be possible now to use 14 bits for the cpu, allowing up to 16383 cpus without growing the lock related data types.

Juergen Gross (2):
xen/spinlock: use lock address for lock debug functions xen/spinlock: merge recurse_cpu and debug.cpu fields in struct
spinlock

 xen/arch/x86/mm/mm-locks.h |  6 ++--
 xen/common/spinlock.c      | 70 ++++++++++++++++++++------------------
 xen/include/xen/rwlock.h   | 10 +++---
 xen/include/xen/spinlock.h | 53 +++++++++++++++++------------
 4 files changed, 76 insertions(+), 63 deletions(-)
Signature · 1 line
2.34.1