All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/13] xen/spinlock: make recursive spinlocks a dedicated type
@ 2023-11-20 11:38 Juergen Gross
  2023-11-20 11:38 ` [PATCH v3 01/13] xen/spinlock: fix coding style issues Juergen Gross
                   ` (12 more replies)
  0 siblings, 13 replies; 23+ messages in thread
From: Juergen Gross @ 2023-11-20 11:38 UTC (permalink / raw)
  To: xen-devel
  Cc: javi.merino, Juergen Gross, Andrew Cooper, George Dunlap,
	Jan Beulich, Julien Grall, Stefano Stabellini, Wei Liu,
	Roger Pau Monné, Paul Durrant, Bertrand Marquis,
	Michal Orzel, Volodymyr Babchuk, Tamas K Lengyel, Lukasz Hawrylko,
	Daniel P. Smith, Mateusz Mówka

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.

This allows to increase the maximum number of physical cpus from 8191
to 65535 without increasing the size of the lock structure in production
builds (the size of recursive spinlocks in debug builds will grow to
12 bytes due to that change).

Changes in V2:
- addressed comments by Jan Beulich
- lots of additional cleanups
- reorganized complete series

Changes in V3:
- addressed comments by Jan Beulich

Juergen Gross (13):
  xen/spinlock: fix coding style issues
  xen/spinlock: reduce lock profile ifdefs
  xen/spinlock: make spinlock initializers more readable
  xen/spinlock: introduce new type for recursive spinlocks
  xen/spinlock: rename recursive lock functions
  xen/spinlock: add rspin_[un]lock_irq[save|restore]()
  xen/spinlock: make struct lock_profile rspinlock_t aware
  xen/spinlock: add explicit non-recursive locking functions
  xen/spinlock: add another function level
  xen/spinlock: add missing rspin_is_locked() and rspin_barrier()
  xen/spinlock: split recursive spinlocks from normal ones
  xen/spinlock: remove indirection through macros for spin_*() functions
  xen/spinlock: support higher number of cpus

 xen/arch/arm/domain.c         |   4 +-
 xen/arch/arm/mm.c             |   4 +-
 xen/arch/x86/domain.c         |  20 +--
 xen/arch/x86/include/asm/mm.h |   2 +-
 xen/arch/x86/mm.c             |  12 +-
 xen/arch/x86/mm/mem_sharing.c |  16 +-
 xen/arch/x86/mm/mm-locks.h    |   6 +-
 xen/arch/x86/mm/p2m-pod.c     |   6 +-
 xen/arch/x86/mm/p2m.c         |   4 +-
 xen/arch/x86/tboot.c          |   4 +-
 xen/arch/x86/traps.c          |  14 +-
 xen/common/domain.c           |   6 +-
 xen/common/domctl.c           |   4 +-
 xen/common/grant_table.c      |  10 +-
 xen/common/ioreq.c            |  54 +++----
 xen/common/memory.c           |   4 +-
 xen/common/numa.c             |   4 +-
 xen/common/page_alloc.c       |  30 ++--
 xen/common/spinlock.c         | 296 +++++++++++++++++++++++-----------
 xen/drivers/char/console.c    |  48 ++----
 xen/drivers/passthrough/pci.c |   8 +-
 xen/include/xen/console.h     |   5 +-
 xen/include/xen/sched.h       |  10 +-
 xen/include/xen/spinlock.h    | 176 ++++++++++++--------
 24 files changed, 449 insertions(+), 298 deletions(-)

-- 
2.35.3



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

end of thread, other threads:[~2023-11-28 13:37 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 11:38 [PATCH v3 00/13] xen/spinlock: make recursive spinlocks a dedicated type Juergen Gross
2023-11-20 11:38 ` [PATCH v3 01/13] xen/spinlock: fix coding style issues Juergen Gross
2023-11-20 11:38 ` [PATCH v3 02/13] xen/spinlock: reduce lock profile ifdefs Juergen Gross
2023-11-24 17:59   ` Alejandro Vallejo
2023-11-24 18:12     ` Alejandro Vallejo
2023-11-28 13:07     ` Juergen Gross
2023-11-20 11:38 ` [PATCH v3 03/13] xen/spinlock: make spinlock initializers more readable Juergen Gross
2023-11-20 11:38 ` [PATCH v3 04/13] xen/spinlock: introduce new type for recursive spinlocks Juergen Gross
2023-11-24 18:59   ` Alejandro Vallejo
2023-11-28 13:16     ` Juergen Gross
2023-11-28 13:36       ` Jan Beulich
2023-11-20 11:38 ` [PATCH v3 05/13] xen/spinlock: rename recursive lock functions Juergen Gross
2023-11-20 11:38 ` [PATCH v3 06/13] xen/spinlock: add rspin_[un]lock_irq[save|restore]() Juergen Gross
2023-11-24 19:23   ` Alejandro Vallejo
2023-11-28 13:24     ` Juergen Gross
2023-11-20 11:38 ` [PATCH v3 07/13] xen/spinlock: make struct lock_profile rspinlock_t aware Juergen Gross
2023-11-24 20:09   ` Alejandro Vallejo
2023-11-20 11:38 ` [PATCH v3 08/13] xen/spinlock: add explicit non-recursive locking functions Juergen Gross
2023-11-20 11:38 ` [PATCH v3 09/13] xen/spinlock: add another function level Juergen Gross
2023-11-20 11:38 ` [PATCH v3 10/13] xen/spinlock: add missing rspin_is_locked() and rspin_barrier() Juergen Gross
2023-11-20 11:38 ` [PATCH v3 11/13] xen/spinlock: split recursive spinlocks from normal ones Juergen Gross
2023-11-20 11:38 ` [PATCH v3 12/13] xen/spinlock: remove indirection through macros for spin_*() functions Juergen Gross
2023-11-20 11:38 ` [PATCH v3 13/13] xen/spinlock: support higher number of cpus 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.